Archive

Posts Tagged ‘facebook’

New way to create test users in Facebook

May 7th, 2011 ddewaele 3 comments

Introduction

As mentioned in the Facebook developer docs, test users can only be created using a call to the Graph API.
As described in my previous Facebook article, a dedicated webpage was available at the time to create test users, however, that page has been brought offline. 

You can create a test user associated with a particular app using the Graph API with your app access token.


https://graph.facebook.com/APP_ID/accounts/test-users?

  installed=true
  &permissions=read_stream
  &method=post
  &access_token=APP_ACCESS_TOKEN

However, before we’ll be able call this API, we first need to retrieve an Access Token for our application.

Continue reading “New way to create test users in Facebook” »

Categories: Facebook SDK Tags: ,

A 30 minute guide to integrating Facebook in your Android application

February 28th, 2011 ddewaele 87 comments

Introduction

The goal of this article is to get Facebook integration up & running from your Android app in 30 minutes. The guide will show you how to

  • setup a Faceook test account
  • register a Facebook application
  • authenticate the user in your Android application.
  • have the user update his Facebook wall from your Android application.

This guide is accompanied  by a sample application that’s available in Github in the AndroidFacebookSample repository. To import this project in Eclipse, I suggest using the EGit plugin that can be installed via the Main P2 Repository located at http://download.eclipse.org/egit/updates.

Before running this project, make sure you change the com.ecs.android.facebook.Sample.AndroidFacebookSample file to include your Facebook API key (see subsequent section).
Once you have sample application up & running, you can copy the relevant classes into your projects to have Facebook up & running from your Android application.

First things first … In order to integrate with Facebook, you need 2 things :

  • A Facebook test account, used in our Android application to login to Facebook and make status updates.
  • A Facebook application, used to inform the user in your Android application that this application is requesting you to login to Facebook.

Continue reading “A 30 minute guide to integrating Facebook in your Android application” »

Categories: Facebook SDK Tags: , , ,