-
-
Save AmaxJ/74b3a4bdf81799a2d78e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Create a new Graph Object | |
FB.api( | |
'me/objects/video.movie', | |
'post', { | |
'object': { | |
'title': 'Sample Movie', | |
'type': 'video.movie', | |
'image': 'http://stuffpoint.com/cats/image/41633-cats-cute-cat.jpg', | |
'url': 'http://localhost:9000', | |
'description': 'Example Description Here', | |
'app_id': '665449656906267', | |
'access_token': 'CAAJdORJqchsBAAZBxrzwMn7vHSJYEZBOD1ZBM9qectBro9Wu9UhyDHHIcDjAIVajNmxsbPeVLqyS2eOqt0TIGftQlQS8vjPwFY1htqxqJMDTBwtje3ioepOPAGGsHKanZA5N3An2ZB3dE4jXR4ytmT1UBubhPq1gZCP5PoSBqjr2ac5MJZAJlWz1FrPZCSmF7mtcHa1QciZCyKLzlafgDNbEbWsLQlmvwSpEZD' | |
} | |
}, | |
//Call the FB Share dialog - referencing newly created object. | |
function(response) { | |
FB.ui({ | |
method: 'share_open_graph', | |
action_type: 'video.watches', | |
action_properties: JSON.stringify({ | |
video: response.ID | |
}) | |
}); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment