I have used the javascript code for developing facebook feed dialog and its working perfectly.
But I also want to fill the "Say something here.." field automatically, which appear on popup.
I m not sure how to do it. I have checked the facebook feed dialog documentation for that but have not find anything relevant yet.
Anybody knows how to do this?
Filling in the messages field is not possible (anymore), at least not
with the JavaScript SDK. Any message parameter will just be ignored.
The message field must always be filled with
user 100% generated content if you use the PHP SDK (see Facebook terms).
https://developers.facebook.com/policy/ (see IV.2)
Remember, it´s a "personal message", not something you would/should create with an app.
you are violating the facebook policy by automatically prefilling the message field.
•You should check this link.
https://developers.facebook.com/docs/apps/review/prefill
Related
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
I'm trying to use the facebooke like-box for a FB Group I'm creating a website for. I'm getting the error below. Where is the mistake coming from ? Thanks
https://www.facebook.com/groups/tapmichiana/
Could not retrieve the specified page. Please verify correct href was passed in.
Although Facebook encourages all it’s users to use “safe browsing” and therefor HTTPS when accessing the platform … the like button itself seems to be a little behind on that issue.
Try pointing your like button to http://www.facebook.com/groups/tapmichiana/ instead, the non-SSL version of your group’s page on Facebook – then it should work.
I've successfully integrated the comments plugin on a site that requires our own custom login. However, when the user leaves a comment with the option "Post to Facebook" checked, the update on the user's news feed displays "Object moved" as the title of the page instead of the actual title.
Is there a way to specify the title in a metatag or an attribute or some other way that doesn't require the plugin to access the page directly?
No, there really isn't a way to do that. The opengraph tags SHOULD do this, but as far as I can tell Facebook always hits the link in the comment. One thing you may want to do is look out for Facebook's crawler User-Agent string and return an abbreviated form of the page content (but this may run afoul of their rules, so I'm not sure you want to do that without some thought about Facebook's possible reaction).
You can use the Facebook URL Linter (at http://developers.facebook.com/tools/lint) to see what's happening when they try and reach out to your page.
If you're using Open Graph, the page needs to be accessible either publicly -or- you could whitelist the facebook user agent for access - facebookexternalhit/1.1
Actually it's facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php).
See http://www.quora.com/What-is-the-user-agent-string-for-the-Facebook-like-share-crawler.
i'm a totally newbie in Facebook App coding and i would like to creat a simple app that give the main content only after a "Like it" confirmation?
The example:
http://www.facebook.com/RelapseRecords?ref=ts&sk=app_162097493835692
(You only see the download links after "Like it")
Where i can find a how-to for that?
Thanks in advise, reevex
Actually, it is possible. Facebook recently introduced the „Signed Request” parameter which can be used to obtain what you need. After you decode this parameter you will have a JSON object. One of its field is called page. This is another JSON object containing among other params the liked boolean if the user has liked the page. This is only available if your app is an iframe loaded in a Page tab.
Based on this boolean value you can choose which content to display to the user.
Good luck!
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.