ui.methods permissions.request in share url - facebook

Earlier today I noticed a friend shared a Viddy video which made me curious. When I clicked on the share link I immediately got an authorization request dialog with custom text on the "next/login" button (Watch the movie). The URL for this share which triggered the behavior was this:
http://www.facebook.com/
connect/
uiserver.php?
app_id=125119214225766
method=permissions.request
redirect_uri=http%3A%2F%2Fwww.viddy.com%2Fvideo%2F2f44f934-bc2f-419f-b462-c46f261744ee
response_type=code
display=async
perms=email%2Cpublish_actions
auth_referral=1
fb_private_mode_enc=ASJbi0_rc8L9GhOWGzXF1eZQgqGW6WhIquDadvKiRi8uZRozkFn937vhtfsR_Krg8iM
I've looked around trying to find this feature documented. How am I suppose to generate such share URLs? I found some documentation on fbdevwiki.com, but that does not cover most of the arguments. If anyone could guide me to some documents I'd be very grateful.

That's an app using Authenticated Referrals so that users are prompted to grant permission directly on Facebook's chrome instead of landing on your app unauthenticated, and then bounced to an auth dialog and back to the app again.
The 'watch video' text in the auth dialog is because this app is publishing 'watch' actions in the Open Graph API
{edit} it appears the 'watch video' link is only shown for preselected partners and isn't available for all video apps
{/edit}

The generated url you see is generated by the app, you can achieve this by creating your own app and giving it the permission.
You can start by going to Facebook Developer

Related

Is it possible to deeplink from a facebook post to an app and does it need to be approved by facebook?

I would like to have my app post to facebook and then when "friends" see the link, they can click on it and since it is a deeplink, clicking on it would take the user to the app store if the app isnt downloaded otherwise it would take them to the correct page of the app. Would this need approval from Facebook?
No approval needed, but in most cases this is currently not possible — Facebook has decided to block the functionality. The best option is to post a link pointing to a page on your website, and then open your app from there.
In other words, you can't open a link from the news feed and have it launch the app. However you can open a link to your website, and once the website is open you can launch your app successfully from there. This is the approach we currently use at Branch.io

Misconfigured: App Sorry, That Helps hasn't been approved for display in App Center

I have a simple Facebook App that I use to allow users of my website to login with Facebook. Recently I added a basic custom story via the open graph API, e.g.
Nick plays a mixtape via anexample.com
The custom story appears in my stream as expected, however when I click the anexample.com link on the story I get the following error and cannot access the actual Facebook App page:
Sorry, the details for anexample.com cannot be displayed because the app is
misconfigured.
What is strange, is that the application redirects at
https://www.facebook.com/games/?app_id=AN_APPLICATION_ID
despite the fact that the app is not registered as a game.
Has anyone else faced this behaviour?
Thanks,
On tapping on the App link, you could navigate it in one of the two possible ways
Any FB page: Add the page in Advanced settings of your App.
A website: Add a web platform

Facebook logout when not authorized

I'm building a public installation using an iPad, built as an iOS web app (using the "Add to Home Screen" functionality) which is going to allow users to share content on Facebook.
I'm currently logging the user in to Facebook and getting them to authorize my Facebook app when they click my custom share button. On a successful login, I open Facebook's Feed dialog and allow them to share. Once they have shared (or clicked cancel) I automatically log them out, making sure that the next user that uses the public installation won't be able to share to the previous user's Facebook account.
This all works well, but things get tricky if someone was to hit my custom share button, log in to Facebook and then not allow my app. This would mean that they have logged in, but as they haven't authorized the app, I don't have an access token, and so can't log them out (FB.logout() requires an access token).
Is there a way around this?
Or is there another way that I can log a user out?
Or is there a safe way to allow a user of a public installation (built in HTML) to share on Facebook and be automatically logged out afterwards? Would building a native obj-c app, and using Facebook's iOS SDK help?
The best I can think of is that if the user logs in but doesn't allow the application, they are told that they need to log out, and redirected to Facebook to be able to do this. However this offers them the chance to browse Facebook and (through shared links in their feed) the whole Internet - this isn't acceptable for our installation.
I solved this problem by creating a native iOS app, where the Facebook share link opened in it's own UIWebView. And once the sharing was complete, I deleted all session & cookie information, effectively logging the user out.

posting requires a permission login dialog to appear twice

I am developing a mobile camera app that allows posting a photo on facebook. The camera app is a stand-alone and does not require facebook login when it starts. However I want to allow posting a picture to facebook. It follows that the first time a user will try uploading an image it will have to go through the permission login dialog twice.
I cant find a way to ask the user for access his basic information + posting of an image on his wall with one login dialog.
This seems "by design" if you read: http://developers.facebook.com/docs/concepts/login/permissions-login-dialog/
Its a bad users experience to be transfered in and out the mobile app twice in a row to allow posting.
Is there a way to ask the user for basic information + posting of an image in one pass?
Do the following steps :
1) Go to https://developers.facebook.com/apps
2) Click on your app.
3) Click edit app
4) Click Advanced
5) Check Enhanced Auth Dialog: Disabled
That's it. You have one authentication popup.
You get two pop-ups because one of them is a basic permission popup for the app while the other popup asks for extended permissions i.e. publish_stream to post a photo on behalf of the user. For more info on facebook permissions, go to : https://developers.facebook.com/docs/reference/login/
#Oriel Bergig Facebook update the sdk.
(v3.0.1 as of March 20, 2013. See what's new in 3.0.). Download from this link .
https://developers.facebook.com/android/
Follow the link
Problem is solved .If any issue ping me.

Redirect Facebook App To External Page

I'm having issues configuring my Facebook app to behave as I want when posting information via the Feed Dialog. I've set up an app and created a link that correctly posts my content when clicked, but I can't figure out how to make the link to the app in the resulting post redirect where I want it to.
As an example, here's a post made via Instagram.
If I click on the 'via Instagram' link, I get either prompted or automatically redirected from the destination URL http://www.facebook.com/apps/application.php?id=124024574287414 to www.instagram.com.
I've seen other posts suggest you can do something similar using a JavaScript redirect from the App Canvas page, and I've got a proof of concept doing this, but since I've seen Instagram and other apps do this seemingly internally to Facebook I'm convinced it's possible to do more cleanly.
That link goes to your app's canvas URL (apps.facebook.com/something) or website URL as defined in the app settings, it can't be configured with any more granularity.
This seems that it will probably do the trick most easily: http://woobox.com/statichtml
See the redirect radio button in the image they have.