Android的不能在Facebook涂鸦墙发布 [英] Android not able to post in facebook wall

查看:126
本文介绍了Android的不能在Facebook涂鸦墙发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我实实现的API在我的项目。我跟着这个教程的在此输入链接的描述

Hi i implemented facebook api in my project .. I followed this tutorial enter link description here

String url="https://www.google.co.in";

   Bundle postParams = new Bundle();
        postParams.putString("description","I just scored:"+bestscore);
        postParams.putString("link", url);




    facebook.dialog(this, "feed",postParams, new DialogListener() {

        @Override
        public void onFacebookError(FacebookError e) {

            /*logoutFromFacebook();

            logout();*/
        }

        @Override
        public void onError(DialogError e) {


            /*
            logout();*/
        }

        @Override
        public void onComplete(Bundle values) {
            //logout();

        }

        @Override
        public void onCancel() {
            //logout();
        }
    });

其一切工作正常...如果我改变了网址例如https://play.google.com/store/apps/details?id=com.m2f.christmascandysmash ...其示值误差这样。如果URL其短指其工作正常(如.. www.facebook.com)

Everything its working fine... if i changed that url like https://play.google.com/store/apps/details?id=com.m2f.christmascandysmash ... Its showing error like this. if url its short means its working fine(like.. www.facebook.com) .

漫长的探索后,我发现用URL链接问题..但同样的事情前2个月正常工作。如何解决这个问题?

After long search i found that problem with url link.. but same thing works fine before 2 months. How to fix this issue ?

推荐答案

试试这个,我不要;知道它是否将工作或没有,但只是给一个尝试

Try this, I don;t know whether it will work or not but just give a try.

转至Facebook应用。编辑其设置。在高级设置页面,禁用流后URL的安全性选项。

Go to the Facebook App. Edit its settings. On the Advanced settings page, disable the "Stream post URL security" option.

如何走。

转到 developers.facebook.com/apps 在左侧,点击应用程序选择吧。

Go to developers.facebook.com/apps On the left hand side, click your app to select it.

接下来在中间栏的设置部分,有一个修改设置链接。

Next to the "Settings" section in the middle column, there's an "Edit Settings" link.

点击这一点。在新页面中,在左侧的设置菜单下,点击高级。

Click that. On the new page, under the "Settings" menu on the left hand side, click "Advanced".

在迁移部分下,找到流URL后安全。将其设置为已禁用。点击屏幕下方的保存更改按钮。

Under the "Migrations" section, find "Stream post URL security". Set it to "Disabled". Click the "Save Changes" button at the bottom of the screen..

这将是这个样子

您可以在默认情况下,这是对看到的只是点击关闭,然后点击保存更改,然后尝试清理项目,然后再次运行它。也许这会帮助你。

You can see by default this is on just click it OFF and click on Save Changes and then try to clean your project and run it again. Might be this will help you.

这篇关于Android的不能在Facebook涂鸦墙发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆