Cross posting to external services
Sharing on Fanvibe
Check-ins and Shouts can be individually shared to external services. Awards are also given with certain activity, such as a check-in or a shout. These can all be shared through Facebook, Twitter, Foursquare, and Gowalla. More services will be added soon.
To share these events, you need to call the share controller with the correct parameters. See the share docs for information on the specific parameters.
Most of the share parameters required will be supplied to you on responses from calls to check-ins and shouts. There may also be similar responses for adding favorite teams, adding friends, and so on.
Available Share Services
There are a set of share services that will be returned to you in any response that lists a user. You can use these responses to determine whether or not a user has activated a service, such as Facebook. These user responses are usually included with most responses, such as the Check-in and Message creation responses. Example below.
$ curl -d "checkin[game_id]=176158" 'http://fanvibe.com/api/checkins.xml' <?xml version="1.0" encoding="UTF-8"?> <checkin> ... <user> ... <facebook_user>true</facebook_user> <twitter_user>true</twitter_user> </user> ... </checkin>
| If the service is not active, these fields will not be present. |
Currently Supported Services
Supported services can be activated by the user by going to a settings page.
- Foursquare (only for check-in with lat and lng parameters)
Coming very soon
- Gowalla (only for check-in with lat and lng parameters)