Official Content

This article shows you the steps to post on Facebook with Native Mobile Applications.

Social interaction is very important for Native Mobile Applications. With GeneXus there are many ways to communicate and send messages from your 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 Native Mobile 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 'ShareLink'
    Facebook.ShareLink("http://www.genexus.com")
Endevent

Step 3: Execution

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

Limitations

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

Scope

Availability

PostToWall method is no longer available since GeneXus 15 Upgrade 8. For more information, read here: Facebook external object

 

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant