background preloader

FB Development

Facebook Twitter

Social Plugins. Home - Facebook Developers. Facebook. Heroku Toolbelt. Heroku Toolbelt for Windows What is it? Heroku client - CLI tool for creating and managing Heroku apps Foreman - an easy option for running your apps locally Git - revision control and pushing to Heroku Getting started Once installed, you'll have access to the heroku command from your command shell. . $ heroku login Enter your Heroku credentials. You're now ready to create your first Heroku app: $ cd ~/myapp$ heroku create Creating stark-fog-398... done, stack is cedar | git@heroku.com:stark-fog-398.git Git remote heroku added Technical details The heroku client will be installed into C:\Program Files\Heroku and will be added to your %PATH%.

Getting Started with Your Facebook App on Heroku. Facebook Table of Contents A Facebook app typically uses an SDK to interact with the Facebook API, using Facebook’s Graph API and FQL to retrieve and post information to Facebook. A Facebook application can easily be developed and deployed to Heroku (in any of Heroku’s supported languages) which has code that interacts with Facebook’s APIs in this manner. This guide is for Facebook developers who develop and deploy their applications on Heroku. It assumes no previous knowledge of Heroku, and will walk through every part of the process: creating an app and a Heroku account, setting up local development tools, and deploying changes to your Facebook app. Prerequisites Basic Facebook app creation knowledgeBasic Git knowledgeA Heroku user account. Local workstation setup Install the Heroku Toolbelt on your local workstation.

Once installed, you use the heroku command from your command shell. Heroku login Enter your Heroku credentials. Workflow Creating the Facebook app Creating the Heroku app. Fb:name - Développeurs Facebook. GET /me HTTP/1.1Host: graph.facebook.com /* make the API call */ $response = $facebook->api( "/me");/* handle the result */ /* make the API call */ FB.api( "/me", function (response) { if (response && ! Response.error) { /* handle the result */ } }); /* make the API call */[FBRequestConnection startWithGraphPath:@"/me" parameters:nil HTTPMethod:@"GET" completionHandler:^( FBRequestConnection *connection, id result, NSError *error ) { /* handle the result */ }]; /* make the API call */new Request( session, "/me", null, HttpMethod.GET, new Request.Callback() { public void onCompleted(Response response) { /* handle the result */ } }).executeAsync(); curl Permissions The /{user-id} node has more complicated permissions requirements than other nodes in the Graph API: There are a number of fields called the public profile which are always available with no access token.

Fields.