HowTo: Post in Facebook wall with Smart Devices

Official Content
This documentation is valid for:

Social interaction is very important for Smart Device applications. With GeneXus there are many ways to communicate and send messages from your smart device application: Email, SMS, Twitter and in GeneXus Evolution 2 Upgrade 1, there is a new feature to interact with Facebook.

Before starting this tutorial, step 1 should be completed. The rest of this document will assume that it has been done, that the Facebook App ID is known and that your Application bundle identifier has been set in your Facebook Application.

Step 1: External Object

To add this feature to a Smart Device Application in GeneXus, first read Facebook external object article, especially its considerations and limitations.

Step 2: Code Example

On a User Event call the External Object to post:

Event ‘SimplePost’
   Facebook.PostToWall("This is my post","using GeneXus","from Facebook external object","http://www.genexus.com","")
EndEvent

Step 3: Execution

When the end user executes the action 'SimplePost', a pop-up window of Facebook will be displayed with a preview of the post and the possibility to add a comment on it.

iOS Android
fbkios3 fbkandroid3

 

Limitations

  • As of July 17, 2017, Facebook's Graph API only considers the link or image parameters; the others are ignored.

Scope

Objects Work With objectPanel object.
Platform Smart Devices(Android, iOS).

Availability

PostToWall is available for Windows Phone as from GeneXus X Evolution 3 Upgrade 3.