Get user profile picture by Id

http://graph.facebook.com/” + facebookId + “/picture?type=square For instance: http://graph.facebook.com/67563683055/picture?type=square There are also more sizes besides “square”. See the docs. Update September 2020 As Facebook have updated their docs this method is not working anymore without a token. You need to append some kind of access_token. You can find further information and how to do it correctly … Read more

Facebook login message: “URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings.”

As the questioner writes In the advanced tab, Valid OAuth redirect URIs is set to: … and I had the same problem (writing the redirect url into the wrong input field) I would like to highlight that It’s NOT Settings -> Advanced -> Share Redirect Whitelist but Facebook Login -> Settings -> Valid OAuth redirect … Read more

Facebook share link without JavaScript

You could use <a href=”https://www.facebook.com/sharer/sharer.php?u=#url” target=”_blank”> Share </a> Currently there is no sharing option without passing current url as a parameter. You can use an indirect way to achieve this. Create a server side page for example: “/sharer.aspx” Link this page whenever you want the share functionality. In the “sharer.aspx” get the refering url, and … Read more

Facebook Open Graph not clearing cache

Go to http://developers.facebook.com/tools/debug Enter the URL following by fbrefresh=CAN_BE_ANYTHING Examples: http://www.example.com?fbrefresh=CAN_BE_ANYTHING http://www.example.com?postid=1234&fbrefresh=CAN_BE_ANYTHING OR visit: http://developers.facebook.com/tools/debug/og/object?q=http://www.example.com/?p=3568&fbrefresh=89127348912 I was having the same issue last night, and I got this solution from some website. Facebook saves your cache thumbnail. It won’t refresh even if you delete the thumnail/image from your server. But Facebook allows you to refresh by … Read more

Facebook development in localhost

Edit: 2-15-2012 This is how to use FB authentication for a localhost website. I find it more scalable and convenient to set up a second Facebook app. If I’m building MyApp, then I’ll make a second one called MyApp-dev. Create a new app at https://developers.facebook.com/apps (New 2/15/2012) Click the Website checkbox under ‘Select how your … Read more

How to Test Facebook Connect Locally

It’s simple enough when you find out. Open /etc/hosts (unix) or C:\WINDOWS\system32\drivers\etc\hosts. If your domain is foo.com, then add this line: 127.0.0.1 local.foo.com When you are testing, open local.foo.com in your browser and it should work.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)