I have been searching for a week now how to post a screenshot from Unity on Facebook timeline.
Where I got so far:
FB.API()
photoID
from the Callback The problem starts when im trying to use that photoID
A few things to understand the situation:
copy/paste the above mentioned url with the photoID
from my FB.API()
uploaded pic brings me to the correct picture in a browser.
but trying the same link in Unity results in a questionmark (pic not found I guess)
PhotoID
(I have also looked into the permission issues, and I am using a temporary token that allowes me to do publish_actions
) My goal is: I want to post a screenshot from Unity using facebook SDK on the user's timeline. I am going to use Unity WebGL.
Edit: Following the advise of CBroe I am going to do my research on the Open Graph markup solution for the post, I will keep the thread posted.
I have found the answer to my own question:
So with the real URL of any picture on facebook you can do a FB.FEED() As you can read it in the comments above, be sure that your app does not spam the timeline of the user. best follow the advices of CBroe. But if you are still interested in how exactly can you get the actual URL here are my step by step instructions:
and there you go the dictionary you are assigning the result too will contain the key : "source".
(I was trying to get the same source info while doing the FB.API() posting too, but I could not squeeze it out.)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.