skip to Main Content

How to access profile picture with Facebook API in Swift 3?

Earlier I tried to access like this: let gr2 : FBSDKGraphRequest = FBSDKGraphRequest(graphPath: "me", parameters: ["fields": "id,picture.width(198).height(198)"]) gr2.start(completionHandler: { (connection, result2, error) -> Void in let data = result2 as! [String : AnyObject] let _loggedInUserSettingRecordName = data["id"] as? String //…

VIEW QUESTION

Facebook api – React Native fetch Network request failed iOS

I'm trying to send a GET request to the Facebook Graph API using fetch: var url = "https://graph.facebook.com/v2.7/" +FACEBOOK_APP_ID +"?fields=context" +"{friends_using_app{id,name,picture.type(normal)}}" +"&access_token="+_this.props.user.facebook_access_token; fetch(url) .then((response) => response.json()) .then((responseJson) => { console.log(responseJson); }) .catch(function(error) { console.log(error); }); But I'm getting TypeError: Network…

VIEW QUESTION
Back To Top
Search