开发者

Android post to facebook wall, stream.publish broken since few days

开发者 https://www.devze.com 2023-03-25 01:34 出处:网络
I have a lot of apps published using the FB android sdk github.com/facebook/facebook-android-sdk All my applications that use FB开发者_StackOverflow中文版 stopped working since few days.

I have a lot of apps published using the FB android sdk

github.com/facebook/facebook-android-sdk

All my applications that use FB开发者_StackOverflow中文版 stopped working since few days. This is necessarily a change or a bug from FB side, because nothing has changed in my applications, It worked for months.

The dialog that opens to post a message ("stream.publish") seems not use the param "message", the form opens but the text box is empty!

Bundle parameters = new Bundle();
parameters.putString("message", "test message");                                          
mFacebook.dialog(Example.this, "stream.publish", parameters,new SampleDialogListener());

Using debug I saw the URL with the "message" param:

https://m.facebook.com/dialog/stream.publish?message=test+message&app_id=....

The text input in the webview is emtpy!

Somebody have an idea or a workaround to fix this issue?


Try "feed" instead of "stream.publish"


Had the same problem for the last few days. Looks like Facebook is deprecating the Stream API: http://developers.facebook.com/docs/reference/rest/stream.publish/, not sure if this has anything to do with that.

Anyway, switching to using the Graph API's 'feed' method worked for me.

0

精彩评论

暂无评论...
验证码 换一张
取 消