facebook - I cannot collect data response.location.name in FB.api -


"function checkloginstate if (response.status === 'connected') { fb.api('/me', 'get',{"fields":"id,name,email,location"}, function(response) { document.getelementbyid('status').innerhtml = json.stringify(response.location.name); }

div class="fb-login-button" scope="public_profile,email,user_birthday,user_location,user_hometown,user_relationships,user_education_history,user_work_history,user_likes,user_religion_politics,user_managed_groups,user_relationship_details,user_friends" data-max-rows="1" data-size="large" data-button-type="continue_with" data-show-faces="false" data-auto-logout-link="false" data-use-continue-as="false" onlogin="checkloginstate;" /div

when test using other user facebook, location set public, still cannot location?


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -