Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ********************
- How To Get A Facebook Api Id
- http://urlin.us/bzjp5
- (Copy & Paste link)
- ********************
- You can try it out in the Graph Explorer on Facebook Developers at developers.facebook.com/tools/explorer. Normal maximum width of 100pixels and a maximum height of 300pixels. Jump toSections of this pageAccessibility HelpPress alt + / to open this menuRemoveTo help personalize content, tailor and measure ads, and provide a safer experience, we use cookies. I googled and found that there is a method to estimate the account creation date by ID and Massoud Seifi from metadatascience.com gathered some good data about it. * Override this for your needs. asked 7 years, 8 months ago viewed 415,320 times active 1 year, 5 months ago Blog Take the 2018 Developer Survey Get the weekly newsletter! In it, you'll get: The week's top questions and answers Important community announcements Questions that need answers see an example newsletter By subscribing, you agree to the privacy policy and terms of service. not as a JSON like { "data": { "url": "fbcdn-profile-a.akamaihd.net/hprofile-ak-ash4/c0.19.180.142‌/…;, "width": 148, "height": 117, "issilhouette": false } } –Gkhan Bar Aker Nov 22 '12 at 12:11 I still get the same response as in my answer. Also, you can get the custom size image of Facebook profile. $userProfile = $facebook->api('/me?fields=picture.width(400).height(400)'); check this post: shareimprove this answer answered Jul 29 '16 at 13:01 sagar jethi 35528 add a comment up vote 1 down vote NaturalBornCamper, Nice code! Here is a clean-cut code function for such process! function getrawfacebookavatarurl($uid) { $array = getheaders(' 1); return (isset($array['Location']) ? $array['Location'] : FALSE); } This will return the raw Facebook avatar image URL. However, it could also be attributed to a photo, an activity - just about any type of Facebook object. –Foreever Aug 12 '14 at 10:24 Looks useful, so cheers in advance, but being one level too newb to understand I'd like to know which programming language this is in? My guess is PHP. In this example, it’s 29465141. You’ll find comments on almost everything in Facebook - status updates, photos, shares, activities - even other comments. My answer assumes you're calling this using one of the Facebook SDKs API / request methods, which will return a JSON response. Stack Overflow Questions Developer Jobs Tags Users current community help chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. As of V2 of the graph api the accepted answer no longer works using a username. the protocol is detected by the browser, and you won't get mixed content warnings on HTTPS. CLARIFICATION If you call (as per above example) it will return a JSON response if you're using one of the Facebook SDKs request methods. It's crazy definitely, I tried to getting data in body and then data appear in header . Read this article: And here are some IDs to download: shareimprove this answer edited May 2 '14 at 21:29 Brady 1917 answered Apr 30 '13 at 18:40 Erroid 58611021 10 off topic, AND useful. shareimprove this answer answered Dec 11 '15 at 3:17 Xawier 147111 add a comment up vote 5 down vote The blog post Grab the Picture of a Facebook Graph Object might offer another form of solution. In this example, it’s 10151752175502915. To get a postid for a particular post, simply click the timestamp at the bottom of the post:. To always retrieve the JSON, add: &redirect=false like so: shareimprove this answer edited Apr 12 '14 at 18:27 Peter Mortensen 11.7k1779106 answered Apr 28 '12 at 2:19 Gunnar Karlsson 25.3k105666 Great explanation, but the return value of url you gave ('graph.facebook.com/redbull/…) responds with image url in the location header ('Location: fbcdn-profile-a.akamaihd.net/hprofile-ak-ash4/c0.19.180.142/‌…). You’re looking for something that says “commentid=…” The number after the equal sign (=)is yourcommentid. They can be Status Updates, Checkins and Shares. More on that in a later post…. Use the code in the tutorial along with the Facebook's Graph API and its PHP SDK library. A common problem when trying to troubleshoot issues with the Facebook API is simply understanding where the source of the problem is. Have Questions? Need A Refund? Click here to email support — we'll be glad to help. The API only specifies the maximum size for profile images, not the actual size. –sckd Nov 10 '14 at 8:43 35 It's 2015 and I am getting (#803) Cannot query users by their username (sarfraz.anees) –Santosh Kumar Jun 19 '15 at 13:35 show 15 more comments up vote 263 down vote To show: 50x50 pixels 200 pixels width To save (using PHP) NOTE: Don't use this. You can use the PHP's filegetcontents function to read that URL and process the retrieved data. Set the profile picture dimension by using the following line of code. Well show you the simple way to get large size profile picture in Facebook PHP SDK. If someone has figured out a way to get the profile pic based on username, or alternatively, how to get a userid (even an alternating one) to use to retrieve a profile pic, please share! In the meantime, the old graph url still works until April 2015. It's back! Take the 2018 Developer Survey today . The old graph url still works until April 2015 5a02188284
Add Comment
Please, Sign In to add comment