views:

360

answers:

1

I want users to add my Facebook Canvas application to their profile. I can create my own page with a 'connect' button to do this, but how do I do this within the canvas page?

What do I mean?

Go to any typical application, usually the first screen you see is an 'Allow Access?' screen with a button for 'Allow' or cancel (link).

How do I get such a screen to display for my canvas application?

A: 

Use the API's require_login() method.

$facebook = new Facebook( ... );
$facebookId = $facebook->require_login();
Matt Huggins
Yup, that's it, just found that while looking at the footprints demo.Cheers!
Rew

related questions