我试图让用户在Android应用程序中"喜欢"Facebook粉丝页面.我能够使用像这样的代码成功"喜欢"像墙评论这样的对象,
mFacebook = new Facebook(APP_ID);
SessionStore.restore(mFacebook, this);
mAsyncRunner = new AsyncFacebookRunner(mFacebook);
Bundle parameters = new Bundle();
mAsyncRunner.request(COMMENT_ID + "/likes", parameters, "POST", new MyRequestListener(), "");
Run Code Online (Sandbox Code Playgroud)
但是,如果我输入页面ID而不是注释ID,我会在Facebook响应中收到此错误消息,
Response: {"error":{"type":"OAuthException","message":"(#200) App does not have permission to make this call"}}
Run Code Online (Sandbox Code Playgroud)
我在登录时获得"publish_stream"和"offline_access"发布权限,并使用SessionStore.restore()将它们提供给Facebook对象.
1)Facebook让应用程序"喜欢"粉丝页面吗?
2)如果是这样,任何关于我做错的想法?
谢谢,马特
我想在Android和iPhone中集成facebook和like按钮.我在facebook和iphone中集成了facebook,但我没有像按钮那样集成.所以请告诉我如何在android和iphone中集成facebook like按钮.
为了整合我在android下面使用的facebook链接示例
https://github.com/facebook/facebook-android-sdk
现在我必须整合像facebook一样的按钮.
最好的祝福.
提前致谢.