简体   繁体   中英

Facebook Graph API - Post Link to App

I've found a quite strange behavior if I try to post to a user wall (feed) using the graph API (tested with Python and JavaScript SDK):

If I include a valid facebook internal link including GET parameters (ie link to an app) the API fails with a HTTP status 500. If I use any other external link (with GET parameters) or an invalid facebook link or a facebook link without GET paramters, everythings works fine.

You can try this in the Graph API Explorer :

POST: https://graph.facebook.com/me/feed

Non-working Fields :

Working Fields (invalid sk parameter) :

Any ideas? Or a suggestion how to post a link to a facebook app (ie http://www.facebook.com/pages/Lorem-Ipsum/159165434150059?sk=app_227540913924543 )

Instead of the sk parameter use the v parameter eg:

http://www.facebook.com/pages/Lorem-Ipsum/159165434150059?v=app_227540913924543

Not sure about posting a link, but when uploading a photo, you cannot post a photo with a link from facebook domain. You must use an external resource.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM