xxxxxxxxxx
curl -X GET "https://graph.facebook.com/oauth/access_token
?client_id={your-app-id}
&client_secret={your-app-secret}
&grant_type=client_credentials"
xxxxxxxxxx
{
"entry": [
{
"id": "1381739901945384",
"changed_fields": [
"certificate"
],
"time": 1510160948
}
],
"object": "certificate_transparency"
}
xxxxxxxxxx
curl -i -X GET "https://graph.facebook.com/facebook/picture?redirect=false"
xxxxxxxxxx
curl -i -X GET \
"https://graph.facebook.com/"103869742223019"?access_token=ACCESS-TOKEN"
xxxxxxxxxx
curl -i -X GET \
"https://graph.facebook.com/USER-ID/photos?access_token=ACCESS-TOKEN"
xxxxxxxxxx
{
"id": "USER-ID",
"name": "EXAMPLE NAME",
"email": "EXAMPLE@EMAIL.COM",
"picture": {
"data": {
"height": 50,
"is_silhouette": false,
"url": "URL-FOR-USER-PROFILE-PICTURE",
"width": 50
}
}
}
xxxxxxxxxx
curl -i -X POST \
"https://graph.facebook.com/USER-ID?email=YOURNEW@EMAILADDRESS.COM&access_token=ACCESS-TOKEN"
xxxxxxxxxx
curl -i - X POST "https://graph.facebook.com/PAGE-ID/feed?message=Hello&
fields=created_time,from,id,message&access_token=ACCESS-TOKEN"
xxxxxxxxxx
{
"created_time": "2017-04-06T22:04:21+0000",
"from": {
"name": "My Facebook Page",
"id": "PAGE-ID"
},
"id": "POST_ID",
"message": "Hello",
}
xxxxxxxxxx
curl -i -X DELETE \
"https://graph.facebook.com/PHOTO-ID?access_token=ACCESSS-TOKEN"