"The post's links must direct to the application's connect or canvas URL" - error - facebook

I am trying to post to user wall but I am receiving this error when when share window pops up:
The post's links must direct to the application's connect or canvas URL
Now, I made a proper Google search in hopes to find a solution, but the only one given was that I need to disable "Stream post URL security". I checked the advanced settings for my app and it is already set to disabled.
So, by having a few years of experience with development on Facebook, and by knowing how incredibly bad the communication between us developers and FB has been in the past, I'm highly doubtful that they will assist me on this. Although I have heard that feedback is better here on SO than the good old FB platform forums. Well, lets see if my only option is to set my hair on fire or that there might be a kind soul out there that can assist.

This answer from the WordPress forums via user Samuel Wood (Otto) worked for me:
Go to the Facebook App. Edit its settings. On the Advanced settings page, disable the "Stream post URL security" option.

Did you generate the access token using the Graph explorer app on FB?
Make sure you select your app from the select box on the top-right.
It will be selected as Graph Explorer by default.
This error happens as the selected app would be Graph explorer and its canvas/site url is not pointing to your site.
Doing this fixed my problem; it may fix yours as well.

With the new app interface, issue is solved by turning off the "Stream post URL security" in the "migration tab"

you always have to use the same domain for linking as specified on the app's developer settings. Now you can have several tlds, and custom prefixes as well.

For others experiencing this problem, I was able to resolve this by configuring the Facebook > App > Settings > App on Facebook > Canvas URL

Related

Facebook -> Apps -> Website with Facebook Login -> How do I still use this? It does not appear in my developer page anymore?

I am trying to set up social login (through oneall.com) on a new website I am making. I have done this before with other sites, and had little trouble.
Since Facebook has changed its developer interface quite a bit over the last few months, it has caused me a lot of misery!
I am not even sure how to set this up anymore. The oneall tutorial shows the simple, previous method, in which you just click the check box for website with Facebook login, add the url, and done.
I would really appreciate any and all help with this. Thank you.
Go to Setting > Add Platform > add Website
You will see Site URL:
Fill "xxxxx.api.oneall.com" (xxx is your subdomain)
Fill App Domains for the same values.
It should be done. (May be)
Sandbox is appear on Status & Preview. You can change according to your need.

Problems registering Facebook App

I am writing a website using which a user would be able to change his status on facebook. Now for this, I have to register my website on facebook. When I go to register my website on Facebook, there are various options like 'MobileApp', 'FacebookApp', 'Website' etc. Can anyone please suggest which one of these is a correct option for me. An article explaining me the same would be useful. Thanks
Saurabh
What sort of app do you want to build? Those options are for configuring the different places your app will be accessed by users.
It sounds from your description that you probably want 'Website' since you said you're building a website.
You have to Create a New App from developers.facebook.com .
Then you go Settings > Basic and select App on Facebook from bottom section.
Enter your "return url" and its done.

Can't change Facebook app site url?

Ok, so maybe I'm just going crazy, but did Facebook remove the option to edit the site url in their Developers application?
When I visit the overview of my apps (https://developers.facebook.com/apps/) and look at the summary of one of my older apps, I see the Site Url specified. When I then go to edit the app settings, there is no option to change the Site Url (in fact, it's not even mentioned in one of the three tabs!).
What did Facebook do to it? A new app I'm trying to build is giving me a "Given URL is not allowed by the Application configuration." error.
It's still there. There's more than three tabs.

How to be notified of comments posted via the Facebook Comments Social Plugin

I recently implemented the Facebook social plugin for comments on my blog. I assumed, incorrectly, that I would get a Facebook notification when someone posts a comment to one of my articles. I was wondering if that is a possibility.
I have read references to the use of a event.subscribe function in the javascript SDK, but I wasn't really interested in creating a javascript-based notification dingus but would rather just see the little badge in my Facebook notification window.
I'd love any insight on how others have addressed this.
Thanks in advance!
Just add yourself as moderator under Facebook developers comments tool. That's it. You'll start getting notifications of any comments on any of your blog posts.
Shorter way:
Open this url (am assuming you are signed into Facebook and is administrator of your Facebook app):
https://developers.facebook.com/tools/comments/
Click on settings
Add yourself (or any of your friend/employee) as moderator.
Lengthier way:
Click on 'Moderation Tool' on any of your blogpost's facebook comments.
You must be on Facebook developers page now. On this page, you must be seeing something like 'your app name' > 'the blogpost title' (from where you clicked moderation tool). Here click on your app name.
On this new page, click on settings.
You must be seeing a modal now. Add yourself (or any of your friend) as moderator here.
You must be getting notifications now.
For those who have been struggling to find a way to get notified when someone sends a comment on your page, here's a (sort of) solution.
Assuming you've created an app for your website, add the following meta tag to your <head>: <meta property="fb:app_id" content="YOUR_APP_ID_HERE" />
Then in Facebook Moderation Tool choose your app and click on Settings in top right corner. In settings, choose Moderation rules tab and at the bottom, you'll find an option Closed under Moderation heading. Select this option. By setting Closed option you basically have to approve all comments that are added to your site, but right now that's the only option how to get notified right in your Facebook without setting up custom listeners on comment.create event. That's also why this solution is sort of solution.
Also don't forget to add yourself as a moderator as Saurabh's answer suggests (otherwise you won't get any notification in your facebook).
Easiest way is to just check the Facebook moderation tool. You could build some kind of notification system that pulls comments using the graph api. I haven't seen any alert/notification system yet that somebody has else built but it would be pretty easy.
Unfortunately, even on the doncaprio blog, the owner has noted that
"For some reasons, notifications stopped working for some months now. I'm yet to find a fix for this... seems like an issue with fb or something."
I've come to the conclusion that I have to live with not having comment notifications.

Facebook app - no "Installable to"

I am creating a small Facebook application for pages (not profiles).
I can see in many tutorials, to allow the application to be added to a page, as a tab, you need to select in the app settings:
Authentification -> Authentification Settings -> Installable to : Facebook pages.
I think the menu is evolving since different tutorials show different locations.
Form the screenshots, I can tell this page is for me Facebook Integration.
In it I can see the Page Tabs section, but there is no "Installable to" option.
Not here nor anywhere else.
That really drives me crazy, I have wasted almost half day on this, I just want to click this option ... :(
If anyone can tip me on this my appreciation will be infinite!
Thank you,
Aurelien
That option is no longer exists (at least in the settings page).
What you can do is getting the page admin to authorize your application and then post on his behalf OR get the page access token (also needs the admin authorization) by asking for the manage_pages permission.
A quick note when reading tutorials about facebook development, check the date of the article because most of articles are outdated!
I found out how to add my app to a new tab:
You need to create a profile for the page admin! If you didn't, on the top right of Facebook page you should have a link 'Create Your Profile'. It doesn't make sense to me but ...
Go to this link (thanks ifaour):https://www.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&scope=manage_pages&response_type=token
Got to your http://www.facebook.com/apps/application.php?id=YOUR_APP_ID and add the app to your page