Facebook Open Graph - still display wrong image - facebook

My Open Graph publish action still display in the wall incorrect image. I've tried to clean cache in the browser - didn't help...
Also I've tried to empty FB OG cache this way (in the Facebook Object Debugger):
http://my-website.com/my-app/?fbrefresh=CAN_BE_ANYTHING
but got this error:
Object Invalid Value: Object at URL 'http://my-website.com/my-app/?fbrefresh=CAN_BE_ANYTHING' of type 'app_url_name:object_name' is invalid because the given value '' for property 'og:url' could not be parsed as type 'url'.
I'ev read that Facebook clean up the cache each 24 hours, but this is already third day...
So, how could I empty the cache, if the attempts above don't works?

You have to fix your og:url value before the cache can be cleared.
What's the result of http://developers.facebook.com/tools/debug/og/echo?q=http://YOUR_OBJECT_URL
(Note that it is the URL of the Open Graph Object you have to use.)

Related

Facebook until empty results

Anybody knows why i get no results back when i add the untill parameter in facebook?
Requested url: https://graph.facebook.com/FBID/home?limit=25&until=1388688636
How do i replicate this:
Go to: https://developers.facebook.com/tools/explorer
Execute the above url (FBID/home?limit=25&until=1388688636)
In the returned results go to the bottom and click the link that got the json key: "next" (looks like: "next": "https://graph.facebook.com/FBID/home?limit=25&until=1388688639")
The returned result is:
{
"data": [
]
}
i searched for ages about this problem and could not find it, the only thing i can come up with is that Facebook only returns posts since the permission accept for the Access Token, another cause could be that Facebook is broken.
This is standard (albeit undocumented) behavior. The empty data array shows up when you try to access an object that has its privacy settings configured to not let third party apps read it, and it's also what's being displayed after you've reached the end of all public records of the current user.
You just have to deal with it. Keep looping over the next result while data != empty is true.
Update: This could also be related to an open issue Facebook is aware about, namely broken pagination. The problem seems to be "dead ends". You can read more about it here and try fiddling around with the timestamp and limit parameters of the request.

Facebook like button not showing when using a dynamic app id

I'm building a website for a franchise organization that has many franchisees. Each franchisee claims it's own part of the site represented within the path - for example the main site url is bigcompany.com and the the Atlanta store url will be bigcompany.com/atlanta. When trying to place the like button on the page it works when given the main organization's app id, but shows nothing when given the franchise app id.
I've tried using the url debugger on facebook (https://developers.facebook.com/tools/debug/) and the error that I receive is
Object Invalid Value: Object at URL 'http://bigcompany.com/atlanta' of `type 'website' is invalid because the given value '12345678901' for property 'fb:admins' could not be parsed as type 'fbid'.`
I'm not sure what that means and haven't found a suitable answer so far.
Why is the like button not showing? Thanks

Open Graph & Rails not retrieving object's URL

I'm using Rails to try and add an action for an object both defined for my app on the open graph. I am using an :after_filter in my controller to call the following after session#create:
#graph.put_connections('me', 'workkout:complete', :session => url_for([#plan, #session]))
I am getting the following back from Facebook:
{"error":{"type":"Exception","message":"Could not retrieve data from URL.","code":1660002}}
I have checked that the correct URL is passed to put_connections, and when I visit this URL using Facebook's Lint tool, everything is correct.
I can't understand why this isn't working, my only thought is that Facebook is hitting the URL moments before rails has generated the object? - not sure if that's even possible though.
Can anyone shed any light on this?
Turns out it was because the create action and the put_connection methods take place in independent threads and as such the URL is not ready when put_connections is called. Solution here http://railscasts.com/episodes/363-facebook-open-graph?autoplay=true

Can't create a new open graph achievement

I keep getting the error:
"The given selector string \"game:points\" is invalid for Ent with ID 10150679224277659"
when trying to create a new achievement
(using https://graph.facebook.com/myappid/achievements/?method=post&access_token=...achievement=newurl)
this new achievement is totally different and has a different URL so why it keeps telling me about the other ID (10150679224277659) in this error?
Any ideas?
The URL you're trying to share must be already detected as a different object; are you using an og:url tag on the avchievement URLs which point to another page?
According to http://graph.facebook.com/10150679224277659 that's of type 'game'
THE URL of that object (http://apps.facebook.com/rummikubilan/themes/rummikub/achievement/win.aspx?title=3+parrots+in+a+row&description=Ilan+earned+3+parrots+in+Rummikubs+Jungle+World+and+won+25+Joker+credits\u002521\u002521+Super+cool\u002521&amount=25) doesn't look right - it seems to have a description there which wouldn't make sense for an achievement because there's a name hardcoded into it.
Putting that URL through the debugger doesn't work either, When i go there via HTTPS it fails because you've not configured the secure URL, and in HTTP mode it fails with a 404 error:
You should probably start with a different URL path for the achievements and make sure the meta tags are correct and resolvable, and that the og:url tags don't redirect elsewhere; the Achievement docs have some good examples: https://developers.facebook.com/docs/achievements/

Facebook linter (aka "object debugger") complains about my URL, but everything seems ok

My site has some URLs that are rewritten by .htaccess... i.e. this:
http://lastminuteislandvacation.com/villa/15/st-john-rental-villa-angelica
is invisibly re-written to:
http://lastminuteislandvacation.com/villa.php?id=15
However, when I plug all this in the Facebook Linter, I get this error message:
"Errors That Must Be Fixed: There was an error in fetching the object at URL
'http://lastminuteislandvacation.com/villa/15/st-john-rental-villa-angelica',
or one of the the URLs specified via a redirect or the 'og:url'
property including one of
http://www.lastminuteislandvacation.com/villa/15/st-john-rental-villa-angelica."
What does that mean, and is it a problem I need to worry about or is it just the Linter complaining?
FWIW as far as I can tell, all my open graph tags on the page are fine, and there's nothing unusual about rewriting a URL via .htaccess. My shares on Facebook seem to look and work correctly, with all the right metadata, image, etc. In other words: there's no problem that I can see, but that whole "Errors That Must Be Fixed" part has me mildly concerned.
When I try your urls in the debugger the results I get are just fine, there are no errors what so ever.
For the short (.php) version I get this:
Fetched URL: http://lastminuteislandvacation.com/villa.php?id=15
Canonical URL: http://lastminuteislandvacation.com/villa/15/st-john-rental-villa-angelica
URL for Likes: http://lastminuteislandvacation.com/villa.php?id=15
And for the longer one I get this:
Fetched URL: http://lastminuteislandvacation.com/villa/15/st-john-rental-villa-angelica
Canonical URL: http://lastminuteislandvacation.com/villa/15/st-john-rental-villa-angelica
In the Scrape Information section.
Also, at the bottom (Urls section) you can see that they both get the same Graph API url