What is the proper Facebook site URL for FB app? - facebook

I am trying to get a FB app approved for the app center and I keep getting the same message back:
on Web - Your web platform is a Facebook URL or redirects to a Facebook URL immediately after logging in. Revise your website URL, which is located in the app 'Settings' tab, under the 'Website' section. Learn more here.
I don't understand what needs to be in the Website platform as the site URL. Currently, I have this:
canvas page: https://apps.facebook.com/myapp (this page iframes blah.myapp.com which asks for FB login)
canvas URL: http://blah.myapp.com/
site URL: http://blah.myapp.com/ (which when you go to this page, you also are asked for FB login)
Any ideas what they want there?

Related

Facebook Requests into a Facebook Page Application

Does anyone know if Facebook Requests can be made to redirect into a Facebook Page app rather than into the Canvas app?
No, it will not redirect to any just url you give it. You should have them redirect from the Canvas app to the Facebook Page. Although that will be ugly/poor user experience. That's your only option.

bug "App on Facebook" auto redirect to website

I created an "App on Facebook" and enter my website URL at the Canvas URL.
I can see my website within the Facebook app http://apps.facebook.com/abc (example url) for months.
During recent routine check on my creation, I found that the Facebook app auto redirect the browser to my website.
I want to view my website from Facebook app http://apps.facebook.com/abc and not redirect to my website.
Any advise?

How can I make a Facebook app which redirects me to my website

How do you make a facebook application which you can search for on facebook and by clicking on it, it redirects you to a different website. An example is if you type in 1-800-Flowers and click on the App - it redirects you to the website http://ww30.1800flowers.com/template.do?id=template4&page=7900&conversionTag=true#flowers_facebook/offer straight away. Is this easy to do? If so, how? Thanks in advance
You can start by creating a app on Facebook and point it to a page on your website. On the page, add some JS code to pop the user out of Facebook and send them to your homepage: e.g.:
window.top.location = 'http://yourwebsite.com';
However, remember that it's against Facebook Terms to have an app simply redirect to a website. Your website must be Facebook Connected or use Facebook API in some way to enhance the user's experience.

how to make "uploaded via" link at the bottom of the post to link to user's website?

what I need: upload photos to user's fan page as a page, using an app for that
what I have: my website which does uploading, and a user, who created fan page and application, and that app's id and secret
what I do:
call FB.init() with that appId
call FB.login() with manage_pages,publish_stream permissions - this prompts FB login popup where user is asked to login and then to authenticate the app. As the result I get app access token.
Send request to https://graph.facebook.com/oauth/access_token?client_id=APP_ID&client_secret=APP_SECRET&grant_type=fb_exchange_token&fb_exchange_token=TOKEN_FROM_ABOVE to get extended app token valid for 2 months (and therefore page tokens will be extended as well as described here)
Send request to https://graph.facebook.com/me/accounts?access_token=TOKEN_FROM_ABOVE to get a list of pages user manages, and let user to choose the page he wants to publish to.
That gives me PAGE access token I can use to publish photos to user's FAN page using /albumId/photos/ API call.
what is the problem:
the "via" link in the photo redirects user to MY website (where user has authenticated his app to upload to his page):
that is because I had to ask user to enter my website's URL in app settings, otherwise Facebook login dialog will complain:
SO MY QUESTIONS ARE:
Am I doing this right? am I missing something probably?
If I am - then how can I get that "via" link to link to user's website?
Thank you.
how can I get that "via" link to link to user's website?
Not at all, because this always links to the app that was used making a post/upload.
What you could try though is having your website redirect when a user is coming to your site from Facebook. Which post/feed story the user is coming from should be passed to your site as parameters; then you’d only have to figure out which user made that post (look it up in your database), and redirect to their homepage.
I ended up adding client's website URL as a query string parameter into "Site URL" field in the application settings - and then I need to modify my site's backend to do redirects:
http://mysite.com/?redirect=http://client-site.com

How to set facebook uri redirect for oauth and homepage

I'm having a little problem when facebook redirect to my homepage from facebook page and from facebook oauth
For example, when I set the callback url in facebook application to be http://www.company.com/oauth/callback when user authorize my application everything works fine.
But when my app posted something on user's wall it shows the app icon nicely "http://www.company.com" However, when someone clicks on that icon it goes to http://www.company.com/oauth/callback" which causes error on my website because that redirect url doesn't have "code" parameter. How do I separate the callback url and application homepage in facebook?
Thanks a lot.