Fb:rock-the-vote

From Facebook Developer Wiki

Jump to: navigation, search

Contents

Description

This tag has been deprecated and will no longer work.

Displays a Rock the Vote & CREDO Mobile registration widget inline in your application. The text inside the tags is formatted as a hyperlink. When the user clicks the link, a US voter registration form appears. When the user is done, they are prompted to share it with their friends. Then they are returned to your page.

This is particularly suitable for political apps or any app that wants to encourage voter registration. You can add this to a Page via the Static FBML App.

Attributes

RequiredNameTypeDescription
optional api_key string The api_key that you got from Rock the Vote to track your online voter registrations - get one at http://www.rockthevote.com/partners. If you don't have an api_key, one will be provided for you.

Examples

The basic widget link.

<fb:rock-the-vote>Register to vote!</fb:rock-the-vote>


Using your own api_key (replace "MY_API_KEY" with actual key).

<fb:rock-the-vote api_key="MY_API_KEY">Register to vote!</fb:rock-the-vote>


Using your own api_key and a custom image.

<fb:rock-the-vote api_key="MY_API_KEY"><img src="http://rtvmultimedia.s3.amazonaws.com/banners/468x60/rtv-468x60-v1.jpg"></fb:rock-thevote>


Alternatively, you can embed the registration widget using an iframe tag so that it loads within the page automatically.

<fb:iframe src="http://www.registrationbyworkingassets.com/register/?api_key=MY_API_KEY" width="610" height="1000" scrolling="no" />

Related Tags

None

reference