How to post an image to friend's facebook wall through graph api?If anybody suceed please send the web reuest or graph url.Here is my graph url.
https://graph.facebook.com/Pageid/feed?access_token=application_access_token&method=post&picture=http://www.Google.es/images/srpr/nav_logo39.png&message=logo
It is working fine ,image get posted on the page.But when I am trying to give url of image (that stored on my desktop)logic get fails.Here is it's url.
https://graph.facebook.com/Pageid/feed?access_token=application_access_token&method=post&picture=D:/foldername/Cimage.jpg&message=Waterfall.
I can't directly put all image that user upload to my server and then post to facebook.I wanted user to directly post an image to facebook wall not through my server (I don't want any image that hosted somewhere I wanted to use the image that get stored on harddisk.)
Related
Is there anyway to refresh the link of a video on instagram legally?
When I say legally I mean not via scraping but by following developer guidelines on https://developers.facebook.com/docs/graph-api ?
Suppose I was looking to get the following reel: https://www.instagram.com/reel/Cg3D38GBJwC/
I can get this raw video via the #NRL hashtag recent media which can be pulled with the following request:
17841564583099740/recent_media?fields=permalink,caption,media_type,media_url&limit=50
The video URL for this reel is:
https://video.cdninstagram.com/v/t50.33967-16/10000000_893382015382741_7795625665889045256_n.mp4?_nc_cat=104&vs=480915650532430_3376026638&_nc_vs=HBksFQAYJEdJQ1dtQURWOUt5MWhpd0RBQWdMUEhrOW9DOXNicV9FQUFBRhUAAsgBABUAGCRHSjJRdXhIa1cxMkd5RWNHQUM2WWRqa2xld1pRYnFfRUFBQUYVAgLIAQAoABgAGwGIB3VzZV9vaWwBMRUAACagzLv9gdHNPxUCKAJDMywXQHRVul41P30YEmRhc2hfYmFzZWxpbmVfMV92MREAdQAA&ccb=1-7&_nc_sid=59939d&efg=eyJ2ZW5jb2RlX3RhZyI6InZ0c192b2RfdXJsZ2VuLjcyMC5jbGlwcyJ9&_nc_ohc=p8ThcVQ1vOQAX8njt1u&_nc_ht=video.cdninstagram.com&edm=AEoDcc0EAAAA&oh=00_AT8IoyJDBQLTOX1hXpby3lCT6cIiIcxuDTJUXaWlrrcCZA&oe=62ECFBB6&_nc_rid=e2b1a3ee71
We can initially obtain this URL by using the /recent_media endpoint, but after a day or so it will expire as it has the expiry embedded in the oe parameter.
Is there anyway I can refresh the link of this video by making another request?
I want to collect all the Facebook link from Facebook search function. What I'm using here is the Facebook graph API tool.
If I want to query the data for a keyword, for example: "limited";
I will use the URL:
https://graph.facebook.com/v11.0/search?q=limited&access_token={my_access_token}
My image
However, I got the result as in the image. When I tried to create a workplace app and tried to get the access token of that app, I got the message as in the second image.
Error message when getting the access token of a workplace app
What I need now is an access token that has the permission to retrieve the data from the Facebook search. After that, I can use python to handle the rest.
Please help me out, thank you very much!
I'm using Auth0 api for login. I have received facebook response in which user profile picture is as below:-
https://lookaside.facebook.com/platform/profilepic/?asid=1324218274262199&height=50&width=50&ext=1525319136&hash=AeSrHdLSZSZhBkyQ
But when I'm trying to refer this image as below, I'm not able to retrieve the image.
<img src="https://lookaside.facebook.com/platform/profilepic/?asid=1324218274262199&height=50&width=50&ext=1525319136&hash=AeSrHdLSZSZhBkyQ">
Any can give me any expert advice why its happening.? I'm not able to find any related docs.
You should use the image by calling the picture attribute from your user object. So for example, we can use the access_token we receive upon authentication to call the /userinfo endpoint to get the user profile (this information is returned as a JSON object) at which point we can do something like userProfile.picture. If you are still having trouble can you please share your code?
Can someone who has a log of a facebook App confirm when facebook appears to have changed the url it returns in the image of taggable_friends return output from https://scontent.xx.fbcdn.net/v/t1.0-1/p50x50/(some filename.jpg) to lookaside to
https://lookaside.facebook.com/gg/profilepic/?token=LONG-TOKEN-HERE-&tag=1 ?
Would have been within past two days
I'm developing a desktop app connected to a website. I store the user profile images in the file system of a web server so I can reach them from the URL, the problem is that I don't want that someone can access the images from any web browser like chrome.
Is there a way in which I can access the images through the URL and display them in my desktop app (built with qt) but also prevent accessing these images from a regular web browser.
The desktop app user is incapable of seeing the URL from the image tough.
you can encrypt image , so that only you (your application) can see the decryption key. after geting encrypted image, decrypt it and show. in this case even if someone get the image, hi/she will get only encrypted content
You can do basic authorization of image request(send some secret token in url and compare it on back end)
Another way is to handle with small webpage in your webserver.
Request the web page for image.
While requesting send User-Agent information to the webpage.
Based on the User-Agent you can send the response back from webpage.
Consider below example:
QNetworkRequest request;
request.setUrl(QUrl("YOUR IMAGE URL"));
request.setRawHeader("User-Agent", "YOUR APP NAME/1.0");
In the webpage validate "YOUR APP NAME" and send valid response.
use QNetworkReply to get the response.
In this way the you can completely shield your images directory in web server.