Facebook Invite Friends to app - Dialogs requests - facebook

I use this code for inviting facebook friends to app : http://pastebin.com/A4LkB8sF
FB.ui({ method: ‘apprequests’, message: ‘Facebook Promotion App’ });
Its working fine but if they click the Link in the FB notification bar they dont get linked directly to my page and app. Instead they are at a “step between”. The app is visible in an iframe with less than 810px and no like button.
This are the link parameters:
*/?fb_source=notification&request_ids=12345621890&ref=notif&app_request_type=user_to_user&notif_t=app_request*
Where is the problem? Why is FB not linking the user to the app in page directly?
I guess the solution is somewhere in the App settings maybe… but i dont know.
Please help me, is important ?

Specify redirect_uri also in the parameters list.

Related

Disable / configure "play" link on facebook shared publication from a facebook game

I have a facebook app which can only display content inside of a page tab app because it needs to know the page id to know which content to display.
My app needs to have the "invite friends" functionality and was created on the 2.4 API version, so I had to define my app as a game.
The problem is :
when I share something from a facebook page tab app, there's a "play" link on my publication and that link redirects to the app, not the page tab app.
I couldn't find any information to know where to redirect the user.
Can I disable this link?
Or configure it to redirect the user to the page tab app?
Or can I have the "invite friends" functionality in any other category than game in the 2.4 API?
I use the facebook JS SDK to share :
FB.ui(
{
method: 'share',
href: $(this).attr('href'),
},
function(response){});
Thanks for your answers and advices.
I got this answer from a facebook comunity group :
" Your app needs to be a game and have a canvas implementation, if you want to use invitable_friends. It needs to be playable on canvas, without redirecting anywhere else first. If that is not the case, or your app is not really a game – then you can not use it.
Possible alternatives are listed here: https://developers.facebook.com/docs/apps/faq#friend_invite "

Facebook App Page missing “Go To App” button

I have a facebook canvas app that I associated with an existing Facebook page but I don't have a "Go to app" button in the facebook page.
I think that the problem comes from the configuration (of the facebook page or the facebook app) but I can't find what is wrong.
https://www.dropbox.com/sh/4mppfj26dr6v5c7/AAAfthrlfke63IgLJJEm900na
I followed the instructions here, the canvas app works and the canvas app is associated with the facebook page but I don't see any information about more configuration needed.
What's necessary to configure to have the "Go to app" button ? Or am I missing something else ?
I see some other similar threads but no one help me.
Thanks in advance for your help.

FB Wall Posting with Link from FB IFrame App

I am doing the FB Wall post with a link say http://www.rewardtv.com. When i post it from my standalone website (using spring social) the link on the wall is working fine. It goes to the rewardtv.com
But when i use the same code from FB app and post it to the wall, even though the wall post looks correct, but when i click on the link it is getting redirected to
http://www.facebook.com/connect/uiserver.php?app_id=172622806174327&method=permissions.request&redirect_uri=http%3A%2F%2Fwww.rewardtv.com%2F&response_type=code&display=page&auth_referral=1
instead of rewardtv.com
and then getting a error page that my "An error occured with app name. Please try again.
Any help please... My intention is even if the wall posting is done from FB app (iframe), it should be directed to www.rewardtv.com instead of going to my app connect and permission
is there any extra permission need to granted in the app?
Constructing link like below
FacebookLink link = new FacebookLink("http://www.rewardtv.com",
rtvLinkTitle, rtvLinkHeading,
rtvLinkMessage);
and doing the post like
facebook.feedOperations().postLink(message, facebookLink);
To rectify the problem follow the below steps,
To Post the Cross domain URL (http://www.rewardtv.com) as link do the following,
Go to developer app setting (https://developers.facebook.com/apps) for the corresponding App.
Click the Edit App tab.
Click the Advanced tab on left side.
In the settings of Migrations Menu, check the radio button to Disabled for Stream post URL security

How to redirect the user to the log in page in a Facebook App

I am hosting a Facebook app on Google app engine, I need to make sure the user is logged into facebook before anything.
What I can currently do is display facebook's log in button using fbxml, but I prefer the user would be redirected to Facebook's log in page if he wasn't logged in, then back to my app's main page, this way I can make sure that the user is logged in before doing anything.
I am new to Facebook apps, I read here that I can redirect the user to
https://www.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL
in order to authenticate him. But using GAE's self.redirect(url) doesn't work, the page stays the same. I was hoping I could do something like this in my handler:
if u'signed_request' in self.request.POST:
facebook.load_signed_request(self.request.get('signed_request'))
if not facebook.user_id:
self.redirect("https://www.facebook.com/dialog/oauth?"+
"client_id={0}&redirect_uri={1}"
.format(FACEBOOK_APP_ID, EXTERNAL_HREF))
return
but as i said earlier this doesn't work.
I'm assuming by 'Facebook App' you mean a Canvas App - so something that will live at https://apps.facebook.com/YOUR_NAMESPACE from a user perspective?
If so, you'll need to add the redirect via Javascript using window.top, as your app is loaded in an iframe. See https://developers.facebook.com/docs/appsonfacebook/tutorial/ and search for 'top', then view the example toward the end of the page.
There are also good examples on the Php Sdk that facebook provides. I like the with_js_sdk.php example. It runs seamlessly and is good to follow.
https://github.com/facebook/php-sdk
http://developers.facebook.com/docs/reference/php/

Adding Facebook Apps to Page Tabs

I have googled and googled around for this and found the blog post from Facebook about remove app profile pages etc. I also found that you can go to this link:
https://www.facebook.com/dialog/pagetab?app_id=[ID NUMBER HERE]&display=popup&next=[URL OF YOUR DOMAIN]
The problem is what do i put in URL OF YOUR DOMAIN. I cant put a site url in the app settings because its not a web site application, its a page tab application. Any combo of URL's i try, it just errors with "URL not owned by application"
Any ideas or experiences with this?
Use FB.ui method of JS-SDK with method pagetab as shown in example of Add Page Tab Dialog documentation this will automatically provide needed info to dialog.
FB.ui({method: 'pagetab'}, function(){
// User either closed dialog or added tab, you can call Graph API to check...
});
You have to register the URL first with Facebook and then use it. First go to http://developers.facebook.com. Then go to your app and hit [Edit App]. At the Basic Info section, you'll find a textbox requesting you to enter the APP Domain. Once you save it will work fine.
I simply entered www.my-domain.com, no http, no slashes.