How can I make the Facebook Like button’s width automatically resize?

#fblike iframe { width: 95px !important; } #fblike .fb_edge_comment_widget iframe { width: 330px !important; } And <div id=”fblike”><fb:like show-faces=”false” layout=”button_count”></fb:like></div> This way both comment and like button iframes are fixed width. No funny effects. Hope it helps.

OG:type article vs website for Individual Web Pages That Are Not Articles

In my experience, the difference between ‘article’ and ‘website’ is related to how Facebook uses the ‘like’. A ‘like’ of a page with type website will appear in the section of the user’s profile where it lists their likes; a ‘like’ of a page with type article does not. A user’s like of an ‘article’ … Read more

How to get Likes Count when searching Facebook Graph API with search=xxx

Couldn’t find this in the documentation but multiple calls to the API are not necessary. You can use summary when querying a feed or multiple posts. Specify this in the fields parameter. https://graph.facebook.com/PAGE_ID/feed?fields=comments.limit(1).summary(true),likes.limit(1).summary(true) This will return a response like this. { “data”: [ { …. “summary”: { “total_count”: 56 } … }, { …. “summary”: … Read more

How to get share counts using graph API

Here’s a list of API links to get your stats: Facebook: https://api.facebook.com/method/links.getStats?urls=%%URL%%&format=json Reddit:http://buttons.reddit.com/button_info.json?url=%%URL%% LinkedIn: http://www.linkedin.com/countserv/count/share?url=%%URL%%&format=json Digg: http://widgets.digg.com/buttons/count?url=%%URL%% Delicious: http://feeds.delicious.com/v2/json/urlinfo/data?url=%%URL%% StumbleUpon: http://www.stumbleupon.com/services/1.01/badge.getinfo?url=%%URL%% Pinterest: http://widgets.pinterest.com/v1/urls/count.json?source=6&url=%%URL%% Edit: Removed the Twitter endpoint, since that one has been deprecated. Edit: Facebook REST API is deprecated

Is there an API to force Facebook to scrape a page again?

Page metadata isn’t the sort of thing that should change very often, but you can manually clear the cache by going to Facebook’s Debug Tool and entering the URL you want to scrape There’s also an API for doing this, which works for any OG object: curl -X POST \ -F “id={object-url OR object-id}” \ … Read more

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