- Timestamp:
- Jan 12, 2013, 1:43:13 PM (11 years ago)
- Children:
- e3a0d71, 4485285
- Parents:
- 4626016
- git-author:
- Jason Gross <jgross@mit.edu> (01/12/13 13:13:18)
- git-committer:
- Jason Gross <jgross@mit.edu> (01/12/13 13:43:13)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/Facebook/lib/Facebook/Graph/Cookbook/Recipe1.pod
r2a42248 r7869e48 64 64 65 65 my $urlmap = Plack::App::URLMap->new; 66 66 67 67 # your code will go here 68 68 69 69 $urlmap->to_app; 70 70 71 All the code we have you add should go in the C<# your code will go here> block, in the order that we have you add it. 72 71 All the code we have you add should go in the C<# your code will go here> block, in the order that we have you add it. 72 73 73 =head2 Step 6: Create your Facebook::Graph object. 74 74 … … 80 80 secret => 'Put Your Application Secret Here', 81 81 ); 82 82 83 83 Now you need the URL you entered in step 3, and the application ID and secret you got in step 4. 84 84 … … 186 186 187 187 sudo plackup --port 80 app.psgi 188 188 189 189 Now we point our browser to: 190 190 191 191 http://www.yourapplication.com/facebook 192 192 193 193 Voila! You have created an authenticated Facebook app. If you would like to see this full program check out C<eg/recipe1.psgi> inside this distribution of L<Facebook::Graph>. 194 194 … … 196 196 =head1 CAVEATS 197 197 198 You should never design an application using all the poor stuff we've done here, like using a shared L<Facebook::Graph> object, not using a Framework/CMS or at least L<Plack::Builder>, not using a templating system, passing the offline access token through the URL, etc. We've made comments about these things as we did them to warn you. These choices were made here B<only> because this is example code who's primary purpose is to show you how to use L<Facebook::Graph>, and not best practices for web development. 198 You should never design an application using all the poor stuff we've done here, like using a shared L<Facebook::Graph> object, not using a Framework/CMS or at least L<Plack::Builder>, not using a templating system, passing the offline access token through the URL, etc. We've made comments about these things as we did them to warn you. These choices were made here B<only> because this is example code who's primary purpose is to show you how to use L<Facebook::Graph>, and not best practices for web development. 199 199 200 200 =head1 SEE ALSO
Note: See TracChangeset
for help on using the changeset viewer.