Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17089

[Android]Getting error when accessing FACEBOOK user info

$
0
0

@sriby7 wrote:

Hi all,

I am using facbook SDKBOX, login functionality is working fine when i use
sdkbox::FBAPIParam params;
sdkbox::PluginFacebook::api("/me?fields=gender", "GET", params, "/me?fields=gender");
getting errors that AccessTocken removed.

Error log:

12-18 18:40:47.045: D/com.facebook.GraphRequestAsyncTask(3819): execute async task: {RequestAsyncTask: connection: null, requests: [{Request: accessToken: null, graphPath: me, graphObject: null, httpMethod: GET, parameters: Bundle[{access_token=CAAV4mVMX5hYBAC5nRSZCrm5lOzYHHlTZAc5Abw4r5MhZAVvQqO326oNlw3caSls8rH3jNBm0ZB5Oqf60zh2R1HZAyFPxZBIIU7McjPKgSPeSNZBZCVnwlfRFs3fFREpUOdKxz9ytXErbibQkfugL8BFbnUcNiDZAjTZABZCq2Gu76G8cD6pGILeg6fbT950KZAjD4zpQVAODqJGFCVh7n7cb440FpKbEK6E8g34ZD, fields=id,name,first_name,middle_name,last_name,link}]}]}
12-18 18:40:47.055: D/Cocos2dxActivity(3819): onResume()
12-18 18:40:47.057: D/AppTracker(3819): App Event: start
12-18 18:40:47.057: D/cocos2d-x debug info(3819): ##FB onPermission: 1, error: success
12-18 18:40:47.057: D/cocos2d-x debug info(3819): Access Tocken CAAV4mVMX5hYBAC5nRSZCrm5lOzYHHlTZAc5Abw4r5MhZAVvQqO326oNlw3caSls8rH3jNBm0ZB5Oqf60zh2R1HZAyFPxZBIIU7McjPKgSPeSNZBZCVnwlfRFs3fFREpUOdKxz9ytXErbibQkfugL8BFbnUcNiDZAjTZABZCq2Gu76G8cD6pGILeg6fbT950KZAjD4zpQVAODqJGFCVh7n7cb440FpKbEK6E8g34ZD
12-18 18:40:47.062: D/com.facebook.GraphRequestAsyncTask(3819): execute async task: {RequestAsyncTask: connection: null, requests: [{Request: accessToken: {AccessToken token:ACCESS_TOKEN_REMOVED permissions:[public_profile, user_friends]}, graphPath: /me?fields=gender, graphObject: null, httpMethod: GET, parameters: Bundle[{}]}]}

12-18 18:40:47.095: D/AbstractTracker(3819): Event success
12-18 18:40:47.641: D/cocos2d-x debug info(3819): ##FB onAPI: tag -> /me?fields=gender, json -> {"error":"An active access token must be used to query information about the current user.","code":"2500"}
12-18 18:40:47.641: D/cocos2d-x debug info(3819): Json entered!!!
12-18 18:40:47.641: A/libc(3819): /Volumes/SrinivasBy/Srinivas/Projects/CardGame/CardGameGit/CardGame/proj.android/../cocos2d/external/flatbuffers/../json/document.h:839: rapidjson::GenericValue& rapidjson::GenericValue::operator[](const rapidjson::GenericValue&) [with SourceAllocator = rapidjson::MemoryPoolAllocator<>; Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>]: assertion "false" failed
12-18 18:40:47.641: A/libc(3819): Fatal signal 6 (SIGABRT), code -6 in tid 3849 (GLThread 7054)

Please help.

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 17089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>