0
我在我的android應用程序中集成了socialauth集成。Android中的SocialAuth集成
但問題是,當我給我的Facebook應用程序ID和祕密,它無法從graph.facebook.com獲取信息。
當我給其他Facebook的應用程序ID(例如:SocialAuth.in)它工作正常。可能是什麼問題呢?
我的logcat如下:
02-14 11:02:34.258: W/System.err(1358): org.brickred.socialauth.exception.SocialAuthException: Error while getting profile from https://graph.facebook.com/me
02-14 11:02:34.258: W/System.err(1358): at org.brickred.socialauth.provider.FacebookImpl.authFacebookLogin(FacebookImpl.java:205)
02-14 11:02:34.268: W/System.err(1358): at org.brickred.socialauth.provider.FacebookImpl.doVerifyResponse(FacebookImpl.java:192)
02-14 11:02:34.268: W/System.err(1358): at org.brickred.socialauth.provider.FacebookImpl.verifyResponse(FacebookImpl.java:178)
02-14 11:02:34.268: W/System.err(1358): at org.brickred.socialauth.SocialAuthManager.connect(SocialAuthManager.java:184)
02-14 11:02:34.268: W/System.err(1358): at org.brickred.socialauth.android.SocialAuthDialog$SocialAuthWebViewClient$1.run(SocialAuthDialog.java:246)
02-14 11:02:34.268: W/System.err(1358): at java.lang.Thread.run(Thread.java:841)
02-14 11:02:34.278: W/System.err(1358): Caused by: java.io.FileNotFoundException: https://graph.facebook.com/me?access_token=CAAD2WcZBnsZBQBAJ3hOeUWx1JnBY0XpAyOadslebo8H4OM5bZAhysrYYEHU2WynddlR9bQx02I52FHUJGMMd1MA88PUOOD2NBYi2P4qQL7mVxtp9QZCkTFvDvgyZB8ELwWs7xIsCCgrJZCy5cx6ZAwRwpHOzaU5umoKIk3HQrZA5vq80wOYBQvTol72a4k7YtSwZD
02-14 11:02:34.278: W/System.err(1358): at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:186)
02-14 11:02:34.278: W/System.err(1358): at libcore.net.http.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:271)
02-14 11:02:34.288: W/System.err(1358): at org.brickred.socialauth.util.Response.getResponseBodyAsString(Response.java:103)
02-14 11:02:34.288: W/System.err(1358): at org.brickred.socialauth.provider.FacebookImpl.authFacebookLogin(FacebookImpl.java:203)
02-14 11:02:34.288: W/System.err(1358): ... 5 more
02-14 11:02:34.288: D/SocialAuthError(1358): org.brickred.socialauth.exception.SocialAuthException: Error while getting profile from https://graph.facebook.com/me
02-14 11:02:34.288: D/Custom-UI(1358): Error
02-14 11:02:34.288: W/System.err(1358): org.brickred.socialauth.android.SocialAuthError: Unknown Error
02-14 11:02:34.298: W/System.err(1358): at org.brickred.socialauth.android.SocialAuthDialog$SocialAuthWebViewClient$1.run(SocialAuthDialog.java:262)
02-14 11:02:34.298: W/System.err(1358): at java.lang.Thread.run(Thread.java:841)
其中u把UR'Facebook應用程序ID和secret' Java代碼? – kId
在oath_consumer.properties文件中 – Addy
其in'asset'文件夾權利,如果是這樣的話'雙重檢查'在Facebook開發人員儀表板上,'我的應用程序已正確配置' – kId