Achievement link in ticker points to app's canvas page instead of achievement's url - facebook

I have an achievement registered for my application with 'url' parameter set to smth like
http://app-canvas-url.com/facebook_achievements/123.html
When achievement is published for a user ticker shows corresponding notification saying "{user name} achieved {achievement title} in {app name}". Click on this notification reveals a bigger popup that contain link to achievement that points to the url shown above.
That's ok. But ticker also has blocks saying "{user name} has earned 1 of 4 achievements in {app name}". Click on this block reveals popup with a list of all achievements available in the app. The problem is that links in this popup for some reason are pointing to urls like
http://apps.facebook.com/app-canvas-name/facebook_achievements/123.html
Looks like instead of pointing directly to achievement's url it prepends relative path to achievement with canvas page url of the app.
Does anyone experience similar problem? Is that an expected behavior? I didn't find anything about which urls are used in ticker so if you have seen any related info in docs, please, share the link.

Before i had the same issue. today morning i solve this.
what i did is to change http to https for the achievements url sended to faceboook.
for example,
change
http://app-canvas-url.com/facebook_achievements/123.html
to
https://app-canvas-url.com/facebook_achievements/123.html

You must have to create the separate pages for all the different types of achievements (ideal. You can also create only one page for all your achievements.).
Once you create those pages, you must have to enter the value for url in that page.
Type the correct url for that achievement.
Then go to the debugger tool
http://developers.facebook.com/tools/debug
Enter that url and check whether you are having any errors or not.
If any errors please solve that and if not then just go to the bottom of the page.
You'll find one link as "Graph API:". Click on that and will open the complete data for your achievement url.
Once done successfully, try to reload your application and check for all the urls for all the achievements.
Thanks!

Related

Facebook Share Button Creates Stories with link "via" my FB app URL - change to website URL

I don't have 10 reputation points yet, so can't embed image, sorry. Please see the image that can help clarify, right away, what's wrong: http://i.stack.imgur.com/b6BbO.png
I am having issues integrating Facebook buttons on my site. I have created a FB app to use with the integration - my like button (see http://soundsviral.com/2014/02/13/tennis-court-by-lorde-45/) is working just like I want it to. However, the share button next to it returns a story like you see above. The real disconcerting piece is that the link for the "Sounds Viral" name (which is the name of the app here, not the site) links to the app itself, which I don't want users to visit at all.) How can I change this URL to be my homepage (or the link in the post below, if that's preferable?)
I also which I could change "link" here to be "song", which is a supported og:type and is in use for my "like" button. However, for the "share" button, it just says "link". But that's less important to me than the actual URL in the story.
Thanks for any ideas!
The solution is to set your facebook app to be a website app that directs facebook users to your website.
To do this:
go to you app page
go to Settings
click Add Platform button
Select Website option
Enter URL of your website and save

Open graph story posted successfully using graph API but not seen neither on the timeline nor in the Activity Log

I am posting an Open Graph story using the graph API but the post is not shown anywhere on my Facebook wall and there is nothing in my Activity Log either.
I configured the story in the App dashboard. The object has one custom property and it is a self hosted object with a public URL. I used the object debugger tool https://developers.facebook.com/tools/debug to make sure that all the metatags (including the one for the custom property) are there and no errors are shown.
Then I make this call to post the story:
https://graph.facebook.com/me/namespace:action?access_token=ACCESS_TOKEN&method=POST&result=MY_OBJECT_PUBLIC_URL
and I get the post ID in the response:
{
"id": "SOME_ID"
}
I can even get all the information related to the post using the graph API with the Post ID returned.
HOWEVER, I DON'T SEE THE POST ANYWHERE ON MY FACEBOOK WALL, NEWS FEED or ACTIVITY LOG.
Any ideas of what might be happening?
I am having a related problem (I think). Let me first say that I use our own Action Types and Stories (i.e. https://graph.facebook.com/me/:).
What I noticed is that while the action does not appear on my wall, it shows up on my friends' News Feed (so even if I can't see it, they can "like" and "comment" on it), and also putting it's ID on the Open Graph Action Debugger tool, I can see the post's details.
BUT, what I also noticed is that it shows up in my activity log! (button on the right-bottom position of your cover image) Then, if you go to each activity entry, there is a small icon on the right with a pencil on it. Clicking on it, it shows that this means that the activity/action/post/whatever is "allowed" on your timeline. But, if you change that to Show to Timeline, it will actually be shown!
So, I think this is where you/we should look further (for example a setting/permission request to enable this by default -- not sure if anything like that exists though).
First at all you need to get approval for every item of your open graph story. You can test your application without approval un-publishing it and adding some user as testers in the Role settings.
Now, to see your open graph activity in your timeline after publish you should configure the Additional Capabilities for you action type. So you need to check the Explicitly Shared option in the Capabilities section for you action. After that you need to include the parameter fb:explicitly_shared=true in the open graph call.
You can take a look to the Additional Capabilities here : https://developers.facebook.com/docs/sharing/opengraph/using-actions#capabilities
Explicit shared should be added in the post parameters.
Refer this link
You may need to enable the 'explicity shared' setting for the open graph action in the Facebook Developer App Dashboard in the website.
You need to add "fb:explicitly_shared" action parameter with value 'true' while posting it.
Also you need to toggle explicitly_shared in Actions' properties configuration page.
You need to be an administer of the app otherwise you will need to get the Stories approved by Facebook.
Hope this could help.
I could totally be wrong, but you may need to submit your Open Graph action to Facebook for approval. And you'll need to set explicit sharing if you want your action to show in places other than your own timeline and activity.
I say I could be wrong because you should at least be able to see your action within your activity log. It's difficult to say without looking more closely at your Open Graph Action and Object.
I had the same issue, I could post the stories but could not see it on the timeline, issue was FBDisplayName in the app has to be same as the one configured in the FB developer console.
make sure to add the Canvas URL under the "App on Facebook" section, I hope it works for you

Feed dialog to event/fan page says "Sorry, something went wrong." after clicking share

Having some issues with the feed dialog when attempting to post to a event or fan page. In my application I am using the JS API and FB.ui using the method feed.
But for a demonstration you can do it using the feed url too for example:
http://www.facebook.com/dialog/feed?app_id=131727613511269&to=287203454659917&redirect_uri=http://www.timeanddate.com/
After clicking share you get the:
Sorry, something went wrong.
We're working on getting this fixed as soon as we can.
Where:
app_id = your app
to = a event / fan page
redirect_uri = a url you are allowed to redirect to
note that the app has publish_stream permissions. (it also has manage_pages for fan pages)
The app in question by the way is: http://apps.facebook.com/tndcountdown/
Thanks,
Andy
EDIT:
An Example taken straight from the documentation:
http://www.facebook.com/dialog/feed?app_id=123050457758183&link=http://developers.facebook.com/docs/reference/dialogs/&picture=http://fbrell.com/f8.jpg&name=Facebook%20Dialogs&caption=Reference%20Documentation&description=Using%20Dialogs%20to%20interact%20with%20users.&message=Facebook%20Dialogs%20are%20so%20easy!&redirect_uri=http://www.example.com/response&to=287203454659917
just replace to=287203454659917 with an event.. (make a test one like it did there)
A few issues I've run into will dialog is that Facebook tries to fill in any missing data. So if you don't provide a description and caption, Facebook will try to scrape the page to get that content. Depending on how the page responds to the "scraping" Facebook will error out. I always make sure I include at least a space for those fields.
It seems the feed url you provided is similar to what is in the documentation. But the demo in the documentation has extra parameters.
I'm about to add page support to my Facebook app, which does the same thing as yours.
http://apps.facebook.com/countdown-timer/
As I posted here - Facebook Send Button - 'Sorry, something went wrong.'...
I had the same problem & worked out that this was due to linking to a Facebook page that did not have a vanity URL set up (i.e. http://www.facebook.com/CubicMushroom rather than http://www.facebook.com/profile.php?id=261963707177053). If you set up a vanity URL for the page it seems to work OK (providing you link to the vanity URL version of the page URL).
To claim a vanity URL, once you have a certain no of like (it used to be 25, but think it's a little lower now) visit https://www.facebook.com/username/

Send button returning error codes, like button works fine

I have a like/send button that I've set up on a customer's home page. I have it pointed at their facebook profile page so that when people like them either from facebook or on their homepage, it's always liking the same thing.
Anyway, I've used the fb social plugins page to create the fbxml, and I'm having a problem with the send button. The like button works wonderfully, but the send button doesn't want to cooperate.
First, I had the button set up using "http://www.facebook.com/AFEDEWA" as the link to like/send. However, with the button(s) configured that way, when you click on Send you get an error message that says "The page at ttp://www.facebook.com/AFEDEWA could not be reached because the server returned status code 200."
So I did some digging on the 'net, and found some info that seemed to indicate that maybe the send button didn't like the alias / page name. I tried putting in the page id instead, and when I do that I get a different error: "The page at ttp://www.facebook.com/profile.php?id=165721903513327 could not be reached."
(I removed the h in the front of the links in those messages because the board was complaining about too many links. But the actual error message has the http in full :) )
The link works either way if you c/p into your browser, and also works fine with the like button. It would appear that the send button has some issues? Maybe needs to handle redirects instead of returning a 200 OK message.... ?
Any thoughts would be greatly appreciated. If you want to see the like/send button in action, this is the website it's set up on: http://www.coolersecurityadvisors.com
thx!
After checking the buttons on the upper right, I found an issue. It seems like you can not Like/Send URL's of real Facebook Pages using the Like/Send button. Facebooks URL debugger always comes up with the error "Facebook can not crawl itself".
If you just want that people share a link to your Facebook Page, simply create a file on your server, implement the OpenGraph Tags you want to show up on Facebook (title, image, etc.) and output this in case the Facebook crawler is visiting this site, if it's not the Facebook crawler, redirect the user to https://www.facebook.com/AFEDEWA
Fix up the 8 warnings from https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.coolersecurityadvisors.com%2F and I think that might help solve the problem.

Facebook Like Button Keeps Resetting

I'm trying to add a facebook "like" button to my page, and it is appearing just fine. My problem is that once it is clicked by a user, it says "Like NUMBER" then resets as if the request was canceled or something.
The weird thing is that if I try to like a page using my facebook account it works, but I tried letting a friend like some content and this behavior appeared.
I created a facebook app, specified the site url with a trailing slash, and site domain. I used the app ID with FB.init, and with the open graph tags. I can't figure what I'm doing wrong here. Any help would be appreciated.
Sample page can be found at: http://wiseolive.com/en/doctors/3881-khalid-jamal-salaymeh
First, for the count to work correctly, Facebook needs to have access to the page (in other words a public page). Check your URL in the linter tool (https://developers.facebook.com/tools/debug) to ensure it can been seen by Facebook.
Secondly, ensure your og: tags are correctly setup. Once again, you can use the linter tool to do that.
Facebook like buttons will show this behavior until they have been scraped by Facebook. That scraping (facebook like docs) will occur every 24 hours, when an admin clicks the like button or the url is put in the url debugger/linter. From what I can tell doing that will solve the problem for that specific link, but not any others you may have on your site.
I don't know of a generic solution for dynamically generated pages unfortunately.