php - Fetching profile picture and name and etc. from Facebook by ID -


i used link in 2014 in php fetching profile photo, name, surname , other information facebook id number. http://graph.facebook.com/{id}/ - link returned me json encoded information , can decode , use. in 2016 link not work. seems facebook changed graph structure, how can use now? method?

you can "me" (the user authorized app) picture using javascript graph api.

fb.api(   '/me',   'get',   {"fields":"id,name,picture"},   function(response) {       console.log(picture.data.url);   } ); 

you can play graph api in facebook's tool graph api explorer

read more graph api javascript, php


Comments

Popular posts from this blog

How to use SUM() in MySQL for calculated values -

loops - Spock: How to use test data with @Stepwise -