How to retrieve LinkedIn video posts? - python-2.7

I am trying to get LinkedIn video post from my company page. I have tried both V1 and V2 APIs.
https://api.linkedin.com/v2/shares?q=owners&owners=urn:li:company:<companyID>&sharesPerOwner=100&oauth2_access_token=<token>
https://api.linkedin.com/v1/companies/<companyID>/updates?format=json&count=40&oauth2_access_token=<token>
I can see only photo posts and normal status updates. Please help me with this.

Video posts are available via the UGC Post API. You can make a GET request using:
https://api.linkedin.com/v2/ugcPosts?q=authors&authors=List({encoded personURN})

Related

How do I get real-time facebook page feed in my webhook?

I subscribed my page with feed event in pages webhook (https://developers.facebook.com/docs/pages/realtime/).
Also, setup the apps webhook product with feed subscribe and changed the domain name as webhook domain name. We have "manage_pages" permission on our app and our app is now live mode. I tried every possible way that I know and got after googling. But I couldn't receive facebook page feed real-time data in my webhook. Please help me to solve this problem.
Thanks so much.
Note: I tried before posting this question: https://stackoverflow.com/a/52039198/5695622 with the test user. But didn't get the real-time facebook page feed on my webhook.
The problem with the "Ngrok", that's why I didn't get the real-time facebook feed data. After chatting with facebook support they fix the problem.
Here is the facebook support link

Instagram post's video link from share url

I'm making an android app that fetches the intagram post details from the post's share url.
For eg. for getting this https://www.instagram.com/p/Bjzikp0nQG0 post details I'm using Instagram api https://api.instagram.com/oembed/?url=https://www.instagram.com/p/Bjzikp0nQG0 to get the post details.
But if the post is video I'm only getting thumbnail. I searched a bit and found instagram deprecated the media endpoint. So I found instagram graph api's media endpoint https://developers.facebook.com/docs/instagram-api/reference/media/#metadata can be used to get the information.
But the final problem is this above graph api require a numeric id of the post to get the details and nowhere in the documentation mentioned how to convert instagram post's share link to post id.

How do I get video likes of my posted videos through facebook api

I am trying to get video-likes programmatically, the graph api requires a video-id, but I do not know how to get to the video-id?
Is there a way to get a list of all my posted video-ids?
Thanks,
You can get the videos with the /me/videos/uploaded endpoint:
https://developers.facebook.com/docs/graph-api/reference/v2.2/user/videos
/{user-id}/videos/uploaded shows all videos that were published to Facebook by this person.

Is there anyone who is really able to get facebook page feed through realtime updates?

I was trying to setup a realtime update for one of my facebook app from a facebook page. I have tried each and every process described in facebook official api docs as well as other developers blogs. But no luck till now. My subscription is successful, I can see it both from api explorer and facebook url. My callback url also works perfectly. But when something new published in my page, I don't get any updates. Hoping anyone will reply who got it really working by him/her self.
Please do not suggest any facebook doc, I have already tried them.

photo not in any album facebook

i've noticed that there are some photos that doesn't appear in any albums. This photos are published by fan on a facebook page.
Is there any way to get this photos by the API ?
The API call /feed returns all the posts of the wall, but many of this photo that i seen in the wall on browser doesn't appear in the response of the API.
Any idea ?
Try using below
https://graph.facebook.com/<YOUR_PAGE_NAME>/picture
Hope this help
Kaushik
I use
graph.facebook.com/PAGEID/photos
Permissions Needed: user_photo_video_tags or friends_photo_video_tags.
refer to: http://developers.facebook.com/docs/reference/api/user/ user photos
http://developers.facebook.com/tools/explorer/?method=GET&path=me%2Fphotos
I have a live example of this usage is you wish to test. it is an iframe plugin that feeds the photos for a page. "is not set up for users".
Just replace "anotherfeed" page user name with any page.
https://anotherfeed.com/api.beta.php?type=photos&pageid=anotherfeed&width=350&height=500&limit=20&offset=0