[英]How to make a user “likes” a page in facebook using Graph API?
I am already making the user give the permission for the application and it is already attending the user to a certain event. 我已经在使用户授予该应用程序的权限,并且已经在使用户参加某个事件。 Now I need to make the user "enter" a community. 现在,我需要使用户“进入”社区。
I guess that would be it "Liking" the page, right? 我想那将是“喜欢”页面,对吗?
How can I do that? 我怎样才能做到这一点?
using the /me/likes I get the list of pages that it liked, and from my own profile I can see the page that I need to make other people like. 使用/ me / likes,我可以获得它喜欢的页面列表,并且从我自己的个人资料中,我可以看到需要让其他人喜欢的页面。
Thanks! 谢谢!
Joe 乔
You can and you can't. 你可以,你不能。
Its easily done by this php code: 通过此php代码可以轻松完成此操作:
$facebook = FacebookInit();
$facebook->api("/$InterestId/likes", "post",
array("access_token" => $AccessToken));
but facebook isn't allowing applications to "Like" in the user's behalf. 但facebook不允许应用程序代表用户“赞”。
see http://www.insidefacebook.com/2010/10/08/causes-whitelisted-like-pages-2/ 参见http://www.insidefacebook.com/2010/10/08/causes-whitelisted-like-pages-2/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.