EUR USD
Extensions for Magento eCommerce system. Programmed success.
More
Filters
Filter
Sorting
Saved Extensions

Setting up Facebook Open Graph to share discounts

1. Use the menu on the left to go to the "Open Graph" page - "Getting Started" Enter "Share D" as "action", and "Discount" as "object" and click "Get Started".

2. On the next page (Apps - Your APP Name - Open Graph - Action Type: Share D) click "Save Changes and Next". We'll come back here later.

3. On the next page (Apps - Your APP Name -Open Graph - Object Type: Discount) click "Save Changes and Next". We'll come back here later.

4. On the next page (Apps - Your APP Name - Open Graph - Aggregation: Discount) select "Share D" in the "Data to Display" field and click "Save Changes and Next". We'll come back here later.

5. On the "Open Graph Dashboard" page, click on the previoiusly created object "Discount" in the "Object Types" area and go to the edit page. Please see the screenshot below.

Magento and Facebook Open Graph: Introduction.

5.1. Go to the "Define Action Type" tab and click "Add Custom Property" in the "Properties" area. Enter "Discount Amount" value as the "Name", select "String" as the "Type", and select "Is Required" as the "Setting".

5.2. Click "Add Custom Property" again. Enter "Coupon Code" value as the "Name", select "String" as the "Type", and select "Is Required" as the "Setting".

5.3. Click "Add Custom Property" again. Enter "Website" value as the "Name", select "Link" as the "Type", and select "Is Required" as the "Setting".

5.4. Click "Add Custom Property" again. Enter "Store URL" value as the "Name", select "Discount" as the "Type", and select "Hide from News Feed" as the "Setting".

5.5. Save changes by clicking "Save Changes". Please see the screenshot.

Magento and Facebook Open Graph: Introduction.

6. On the "Open Graph Dashboard" page, click on the previoiusly created action "Share D" in the "Action Types" area and go to the edit page.

6.1. Go to the "Define Action Type" tab and click "Add Custom Property" in the "Properties" area. Enter "code" value as the "Name", select "String" as the "Type", and select "Is Required" as the "Setting".

6.2. Click "Add Custom Property" again. Enter "amount" value as the "Name", select "String" as the "Type", and select "Is Required" as the "Setting".

6.3. Click "Add Custom Property" again. Enter "site_name" value as the "Name", and select "String" as the "Type".

6.4. Select the "Tags" check box.

Magento and Facebook Open Graph: Introduction.

6.5. Go to the "Configure Sentences" tab and click the "Edit Tenses" button. Select the "only the past tense" value in the drop-down list in the dialog window and specify the following values:

Past Tense: "shared"
Plural Past Tense: "shared"
Present Tense: "is sharing"
Plural Present Tense: "are sharing"
Imperative Tense: "share"

Click "Submit".

6.6. Go to the "Configure Sentences" and select "using Spread The Word" in the "Attribution" drop-down list. If your app has a different name, it will be displayed here instead of "Spread The Word".

6.7. Please save changes by clicking "Save Changes" (this is necessary).

6.8. Go to the "Configure Story Attachment" tab and select "Item" as "Attachment Layout". Enter a "Caption" for each of 4 fields respectively:

Use coupon code "{code}"
to get your {amount} off
at {discount.website}
Enjoy shopping at {site_name}!

6.9. Save changes by clicking "Save Changes". Please see the screenshot above.

Magento and Facebook Open Graph: Introduction.

7. Go to the "Open Graph Dashboard" page, click on "Share D" in the "Aggregations" area and go to the edit page.

7.1. Select "Number" as the "Layout Style".

7.2. Select "Most Recent" in the "Item to Show" drop-down list.

7.3. Enter "Add In Mage Discount Sharing Stats" in the "Aggregation Title" field (please replace Add In Mage with the name of your store).

7.4. In the "Number" field enter "count | pluralize("0 discounts", "1 discount", "%d discounts")" and enter "shared" into the field to the right.

7.5. Enter "The latest discount of {discount.discount_amount} was shared {publish_time | date}." in the "Caption" field. Please see the screenshot below.

Magento and Facebook Open Graph: Introduction.

7.6. Click "Save Changes".

8. Go to "Open Graph Dashboard" page and click on "Create New Aggregation" in the "Aggregations" area.

8.1. Select "Discount" in the "Data to Display" drop-down list.

8.2. Select "Share D" in the "Action Type" drop-down list.

8.3. Select "Table" as "Layout Style".

8.4. Select "Favorite" in the "Sort By" drop-down list.

8.5. Enter "Discount Sharing Activity" in the "Aggregation Title" field.

8.6. Enter the column name "Date" for the "Columns" field and enter the following contents for it: "{publish_time | date("fb_absolute")}".

8.7. Click "Add Column". Enter "Happy Friends" column name and fill it with "{count}".

8.8. Click on the "Advanced" link and leave the values below in the "Group By" option: "discount" and "discount.store_url.store_url".

8.9. Save changes by clicking "Save Changes".