我需要在我的应用程序上集成一个“在 Facebook 上分享”按钮.. 遵循本指南
我在按钮上添加了一个侦听器,并在“onClick”中写道:
private static final String FACEBOOK_APPID = "00000";
private static final String FACEBOOK_PERMISSION = "publish_stream";
FacebookConnector facebookConnector = new FacebookConnector(FACEBOOK_APPID, activity, context, new String[] { FACEBOOK_PERMISSION });
facebookConnector.login();
//facebookConnector.postMessageOnWall("weeee");
我知道 APPID 号码,但是……facebook_permission (publish_stream) 是什么?
if I try without the facebook_permission I get a null pointer exception