問題描述
我正在開發(fā)這個 Facebook 應(yīng)用程序,我想知道是否有可能(以及如何)通過 Facebook PHP Graph API 以編程方式在某個頁面上按一些喜歡"按鈕?
I'm developing this Facebook Application and I was wondering if it's possible (and how) to programmatically, through the Facebook PHP Graph API, press some 'Like' button on some page?
當(dāng)然,這在我的應(yīng)用程序中是可選的...我還沒有準(zhǔn)備好真正解釋我在做什么應(yīng)用程序,但是編寫這樣一個功能會很有趣.
Of course, this is optional on my application... I'm still not ready to really explain what application I'm doing, but it would be interesting to code such a feature.
有沒有可能?
推薦答案
您不能這樣做.Facebok 不會讓您對/POST_ID/likes 執(zhí)行 POST,您只能執(zhí)行 get 請求來檢索他們的喜歡.您試圖做的是違反 Facebook 的 TOS.我建議在他們繼續(xù)您的應(yīng)用程序之前添加一個喜歡按鈕并強制"他們喜歡.但是,在我看來,即使這樣也有點愚蠢,因為他們在使用您的應(yīng)用程序后會立即變得不一樣.
You cannot do this. Facebok wont let you do a POST to /POST_ID/likes, you can only do a get request to retrieve their likes. What you are trying to do is a violation of facebook's TOS. I would suggest just adding a like button and "forcing" them to like before they continue with your application. However, in my opinion even that is kind of silly because they can instantly go unlike it after they have used your application.
這篇關(guān)于如何以編程方式“按下"通過 Facebook 應(yīng)用程序的“喜歡"按鈕?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!