Facebook的状态没有更新。错误403,身份验证错误,SocialAuthException在Android中错误、身份验证、状态、Facebook

由网友(问安)分享简介:我已经创建了一个Android应用程序,在与Facebook的授权是做精,但是当我轻点更新状态按钮,它显示异常。它返回的状态code 403。code是:如果(providerName.equalsIgnoreCase(脸谱){尝试{adapter.updateStory(你好SocialAuth Android的+...

我已经创建了一个Android应用程序,在与Facebook的授权是做精,但是当我轻点更新状态按钮,它显示异常。它返回的状态code 403。

code是:

 如果(providerName.equalsIgnoreCase(脸谱)
        {
            尝试
            {
                adapter.updateStory(
                        你好SocialAuth Android的+ System.currentTimeMillis的()
                        AAA,
                        BBB,
                        CCC,
                        滴滴滴,EEE
                        新消息监听());
            }
            赶上(UnsupportedEncodingException E)
            {
                e.printStackTrace();
            }
        }
 

解决方案

翻翻SocialAuth维基我发现了一个错误的电流匹配你的描述:

https://开头code。 google.com/p/socialauth-android/issues/detail?id=175

所以,你并不孤单与你的问题。你可以提供问题跟踪任何更多的信息,以帮助,并说明了问题的严重性。

但除此之外我怕你只需要等待 - 或者考虑修复该错误在你自己的,否则开源库

如何更新Facebook状态

您也可以检查是否原始的Java实现或.net口遇到了同样的问题;如果不从这些库中的code可能有助于找到一个解决方案。

I have created an Android application, in that the authorization with Facebook is done fine, but when I tap on the update status button it shows exception. It returns status code 403.

Code is:

if (providerName.equalsIgnoreCase("facebook") 
        {
            try 
            {
                adapter.updateStory(
                        "Hello SocialAuth Android" + System.currentTimeMillis(),
                        "AAA",
                        "BBB",
                        "CCC.",
                        "DDD", "EEE",
                        new MessageListener());
            }
            catch (UnsupportedEncodingException e) 
            {               
                e.printStackTrace();
            }
        }

解决方案

Looking through the SocialAuth Wiki I found a current bug matching your description:

https://code.google.com/p/socialauth-android/issues/detail?id=175

So you're not alone with your problem. You could provide any more information in their issue tracker to help and to indicate the severity of the problem.

But besides that I'm afraid you'll just have to wait - or consider fixing the bug in the otherwise open source library on your own.

You could also check whether the original Java implementation or the .Net port are experiencing the same problem; if not the code from those libraries might help to find a solution.

阅读全文

相关推荐

最新文章