Is it possible to LIKE a Facebook Page via the API?

牧云@^-^@ 提交于 2019-12-17 19:49:55

问题


Is it possible to LIKE a Facebook Page via the Open Graph API?

Maybe POST to "http://graph.facebook.com/#{FB_PAGE_ID}/likes ???

This is the only thing I could find in the API about creating a LIKE:

/POST_ID/likes like the given post none


回答1:


Actually, it's not possible. You can not like pages. Check this: 'Like' a page using Facebook Graph API . I had to use a website to do like a page.

The error I always got was something about permission whitelist. It seems that this specific function is only available for specific apps.

At the top of my head, I think you can get a edge create notification with the javascrip sdk that you can use as callback for adding a fb page




回答2:


You are correct. You need to retrieve the unique identifier of the page/photo/post/etc. you wish to like, then make a POST request to https://graph.facebook.com/<IDENTIFIER>/likes.

Check out this page of the Facebook Developers documentation, under the subheading "Publishing".



来源:https://stackoverflow.com/questions/4379092/is-it-possible-to-like-a-facebook-page-via-the-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!