FacebookSDK-5.0.25.0 for a Iframe Canvas App, after autherization user is redirected to canvas page - redirect

I am working on web application with .net 3.5 using C# facebook SDK. Loading page inside Page Tab iframe with some information, and input button, on click of button i am doing auth.Authorize() with some permissions, FB Permission window opens fine, but once user click on allow button it is redirecting to application canvas page instead of Page tab.
Is there anything i am missing?
Regards
Imran

Answer is to set auth.ReturnUrlPath which will bring user back to selected tab in facebook page. If your application is being added to multiple pages, then you can find out current pageid from "signed request" and set correct ReturnUrlPath, and attach ?sk=app_YOUR_APP_ID as querystring to ReturnUrlPath so current tab will be selected. your return path will look something similar to : http://www.facebook.com/profile.php?id=YOUR_PAGE_ID&sk=app_YOUR_APP_ID (make sure you handle both http and https)
This worked for me, hopefully will work for someone too.
-Ims

Facebook C# SDK doesnt support tabs.
Only canvas apps are supported.

Related

How to embed fbApp within fbPage in a specific way?

how can I embed my app in my facebook page in a way as here:
www.facebook.com/SzkolaSTRAMA?v=app_323694844330149
I have attached the app to my page using the magic url:
http://facebook.com/add.php?api_key=&pages=1&page=
and tried to open somehow the app within using the v parameter, but it seems it is not that. Can someone give me a clue? Thanks.
Now you can add an application to a page in a page tab by going to below mentioned url
https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=YOUR_URL
You need to change "app_id" with your app_id, you can find it in app settings, "Your_url" should be replaced with your application complete url for e.g. "https://www.facebook.com/TestApplication?sk=app_389610254390000"
after changing values press enter, If you are admin of any Facebook page then you will be taken to a screen where you can select the page, after completion of this step your app will be added to page tab.
For further clarification go to this link
https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=YOUR_URL
YOUR_URL should be replaced with your Canvas url.
(The page that is being loaded into iframe on facebook)
APP_ID with id of the Page Tab application.
Explained also here
https://stackoverflow.com/a/10535905/1520297

How to add an iFrame page Tab application to an Application profile page?

I've been trying to set up my Facebook Application Profile Page by adding an iFrame tab to it. Seeing as this is similar to the process of adding an iFrame tab to a Fan Page, I going through the same process, to no avail.
In order to add an iFrame tab to a Fan Page, one is required to create a Facebook iFrame Page Tab Application (process described here: http://www.hyperarts.com/blog/tutorial-add-an-iframe-application-to-your-facebook-fan-page-fall-2012/), and then browse to the newly created app's page, click the 'Add to My Page' link and select the page to which they want to add the iFrame Page Tab Application.
Now, if I want to do the same thing, but instead of adding the iFrame Page Tab Application to a Fan Page, add it to an Application Profile Page, then that's impossible because, apparently, Application Profile Pages don't appear in the window where you'd select the page you want to add the tab to. I've seen other applications that have done it, and have tried many approaches, none of which seem to work.
Any ideas?
Ultimately, my goal is to create a tab in my Application Profile Page, with my own content (which is basically just a picture with a link on it). Tried using the FBML app that Facebook provides but the problem with that is that they don't let you customize the icon to the left of the tab when using the FBML app, and using the iFrame Page Tab Application (as described above) is a workaround, but then I can't add it to my App profile page :\
Thanks

FB App works in Iframe, but doesn't appear when used as Page Tab

Okay, allow me to say first off that I am working on developing my first FB app/page tab at the moment. I'm not looking for anything fancy yet, just workability.
That being said, I have managed to create a FB app that loads from the hosting requested, and displays it under the app page. I have also made it so that I can add it as a page tab to FB pages. What I am having an issue with is that clicking on the page tab for the app, it does not show any content in the iframe on the page, though it shows on the canvas page for the app.
So, my question is, do you have any ideas as to why it might be showing on a canvas iframe and not the page tab iframe? I am currently guessing that it has to do with how the signed request is processed, but am not completely sure. I am using the PHP SDK for FB given here: https://github.com/facebook/php-sdk/ for the FB-related functions, and am tracing through that currently for where I might be going wrong.
Any help is appreciated. Thanks. =)
I had the same problem and was able to solve it by providing different (http vs https) URLs for the secure and non-secure canvas and page tab URLs. Just remove post the non-secure URL for the non-secure canvas/page tab URL fields. I believe this is because Facebook doesn't check to see if the user has secure browsing turned on until after they have logged in.
You could try to change the order of appear of the app tab; it worked for me.

custom tab content doesn't show up in facebook page

I created a facebook page for my company and we wanted to add a custom tab for users to land on. I went and created an app to do an iframe tab since fbml has been depreciated. Anyway i have everything set and added the app on the fan page, but when you click on the link for the custom tab nothing shows up in the content area.
Any ideas as to why this is happening? I can see the content just fin on our server, it just doesn't load inside the facebook page
I have the same problem (FF 3.6, IE8). I've discovered that the Custom app/tab won't display in the my FB page if I'm logged into my own page. The only "solution" I have found is to log out of FB, or open a different browser and display the page "anonymously". Only then does the custom tab appear.

How to add my facebook app to my fan page?

I'm new to facebook app development and i cant seem to figure this out. I have a simple app i made (an iframe website) that i want to add to a tab on my facebook page. When i try to click on the + tab to add it to my page i only have a few options of youtube, events, fbml... When i do a search absolutely nothing comes up unless i search for those items i just mentioned before (youtube, events, fbml).
Type this into your browser's url bar with the appropiate ids. (I already assume you have configured the app settings for page tab urls,etc).
https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=YOUR_URL
See https://developers.facebook.com/docs/appsonfacebook/pagetabs/ for a full explanation.