How to find out if the administrator has really installed my facebook Canvas APP - facebook

I'm developing an application that will allow users to dynamically load content on their Facebook pages.
The problem is that when they set up their application and press "Install" button, I save their settings in a database and redirect them to: http://www.facebook.com/add.php?api_key=<MY_APP_KEY>&pages=1&page=....."
After redirect, there are two options: "ADD Application" or Leave this app.
Is there any way that I can track whether the user has pressed the "ADD" button? For example if I can redirect the user after he press "Add this app" button, I'll be able to confirm that the user has really installed my application. After all, the user can hit "Leave", "navigate away of this page" or even "Close" his browser....

Related

Is it suggested to logout a user if they click back button and then forward button on the landing page after signing in but not logging out?

For a non-banking enterprise web app, is it recommended to allow the user to log into the app on pressing back button and then forward button on a browser, when the user has logged in and is on the landing page but has not logged out.

My app presents the facebook login dialog and user prompted to login - how can he cancel from this dialog?

When a user clicks the "post to facebook" button in my app, he is presented with the facebook login dialog. If the user has no facebook account and does not want to register for one then I want to give him the option of exiting gracefully from the facebook login dialog and coming back to my app.
The problem is that the facebook login dialog has no cancel button.
What is the recommended approach for offering a "post to facebook" button, yet getting the user safely back to my app if they change their mind?
Many thanks.
Just had the same problem, but the (unfortunately not so clear) hint of James Texter helped:
In your target's build settings you need to add FBDialog.bundle in the Copy Bundle Resources phase. You get a fbDidNotLogin: callback when you press the button.
If you are referencing source and not the bundle, you need to include the close.png. It looks for it in FBDialog.bundle/images/close.png.
You have to explicity import the file FacebookSDKResources.bundle into the Ressources folder in XCode. (copy-paste the file then drag-and-drop it in XCode, add as group)

facebook Enhanced Auth Dialog but want to display a message to the user before

I am trying to use new enhanced auth dialog instead of old one in a new application,
I want to first of all display a page with a message to the user, then he can click on a button and then he have the enhanced auth dialog.
My worries are when i set up my new application, the auth dialog v2 is displayed and then if the user accept permissions, then he is redirected to my home.php.
Is it possible to use enhanced auth dialog but first of all displaying a page which inform about the application?
Thanks! :-)
Yes it is possible to first display a page to the user before putting up the auth dialog. I have a current production app that does just that.
In your app, have a connect button of your own making that you display to the user when they are not connected to Facebook.
When a user clicks it, redirect to the page you want to show them with the special wording.
On that special page, have the real facebook login button (or a button/link that fires off FB.login())
Well, I have found the answer.
If you don't want that Facebook display the enhanced auth dialog before your application, but do it manually, when you want,
in your app settings, in "auth dialog" tab, don't write anyting in "Authenticated Referrals" !
And that's all :-)

Facebook Connect dialog box

Our programer built a facebook connect feature on our website.
The steps:
1. User clicks the facebook connect
2. The user gets a popup with user/pass request from facebook
3. The user gets another popup to authorized the permissions and connect
I'm wondering how we can control the content on that 3rd pop-up pages.
Currently it says something like "Install MyWebsiteName?" I'm wondering if that language can be changed.
Thanks!
You can configure a lot of what the authorization popup does via your app settings. Goto https://developers.facebook.com/apps/APPID/auth and customize it there.
Languages can be done using the "Translate you app" link in the left column of that same link above.

Creating a new App on a company page

We are developing an iPhone app for a company which uses facebook connect. When adding the app to FB we normally login to the company's account at developer.facebook.com and set up the app of that account.
In this case, an employee at the company has set up a facebook page for the company, but uses his personal account. He made me an admin for the facebook page, but I don't see a place to add the APP. Of course I can add the app on our company's account or this employee's account, but if we do, when the our iphone app is set up using FB connect the personal account will show up as the developer account.
How do I associate the facebook connect app with the company's page? Do they need to create a new FB account for this app or for the company?
Thanks in advance!
To connect your Facebook application with your Facebook page, you will need to create a custom tab and to access your Facebook Developers account where you set up the Facebook app. The custom tab settings let you add the application as a tab to any Facebook page, including your own pages.
Go to developers.facebook.com and click the "Apps" option on the top menu bar. You may be prompted to sign in to your Facebook account if you're not already logged in.
Go to the left sidebar and click the application title you want to edit. Click the "Edit" link near the upper-right side of the "Settings" bar.
Click the "On Facebook" link from the left sidebar. Copy the website address from the "Canvas URL" in the "Canvas" section to the "Tab URL" field of the "Page Tabs" section. Next, copy the "Secure Canvas URL" field from the "Canvas" section to the "Secure Tab URL" field in the "Page Tabs" area. Click the "Save Changes" button.
Go to Facebook.com and type the name of your app in the top search box. Select the "See More Results" link from the drop-down list.
Go to the left column of the application's About page and click the "Add to Page" link. On the pop-up screen, click the "Add to Page" button next to the Facebook page you want it added to. Click the "Close" button.
Visit your Facebook page and you will see a new tab on the left sidebar below the profile picture. The tab should have the title of your app. If you click on the tab, it will load your application on the Facebook page.