Using Facebook SDK v7.2.2 & Unity 5.4.2f2
I want to share a screenshot to facebook via any facebook sdk method.
I have got the code ready for taking screenshot and save it on locally on disk.
Now I have used FB.API (“me/photos”, Facebook.Unity.HttpMethod.POST, ShareCallBack, wwwForm);
But when it executes it leads me an error and says “403 Firbidden access”.
I login into facebook using FB.LoginWithReadPermission(); using below listed code :.
List<string> aList = new List<string>();
Do you I need to login with FB.LoginWithPublishPermission() ? if yes then do i need ask for only public_profile permission ?
I tried using this way also.
I upload the image to server then get the image url and then add that url into FB.sharelink and My all data is there but is not showing in my post.
Image also reside on server. is there anything that could be missing by me if I use FB.Sharelink ? and when facebook popup comes it shows older image in facebook sharing while using FB.sharelink and in facebook post other or previous images are getting displayed. Can anyone help me on this ?
Which method should I choose ? At lease I want a image to be shared on facebook accounts.