php - How to get user id and post id of photos, videos and posts from the Facebook Url -


is possible page id , post id facebook url using facebook graph api ?

for video - facebook.com/sampletestpage/videos/vb.77018700065049/770205000129979/?type=2&theater photo - facebook.com/sampletestpage/photos/a.770200009796850.1070001826.770187000465049/770308000119648/?type=3&theater

i can user id using - https://graph.facebook.com/sampletestpage?access_token={my_access_token}

but post id of video. know id 770205000129979. don't know if parsing url id (for photos or videos or normal posts) correct way ?

there (i'm not sure if there are) multiple variations in url. parsing url difficult if there lot of variations. there better way in graph api user id , post id url ?

like url gives user id , post id in url. went through lot of documentation , questions here couldn't find of help. better of doing ?

edit - since knowing user id , post id not possible using apis (as cbroe mentioned in comments). better way user id , post id of posts (videos, photos, normal posts) user's page. need insights of posts user has submitted.

(they have authenticated read insights , have access_token)

so trying - https://graph.facebook.com/v2.9/userid_postid/insights/post_impressions_unique?access_token={users_access_token}

but need know userid , postid posturl submit.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -