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.
To add this feature to a Smart Device Application in GeneXus, first read Facebook external object article, especially its considerations and limitations.
On a User Event call the External Object to post:
Facebook.PostToWall("This is my post","using GeneXus","from Facebook external object","http://www.genexus.com","")
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.
- As of July 17, 2017, Facebook's Graph API only considers the link or image parameters; the others are ignored.
PostToWall is available for Windows Phone as from GeneXus X Evolution 3 Upgrade 3.