Skip to content

Instantly share code, notes, and snippets.

@nbhartiya
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save nbhartiya/79061f6797f63d291995 to your computer and use it in GitHub Desktop.

Select an option

Save nbhartiya/79061f6797f63d291995 to your computer and use it in GitHub Desktop.
var linkbuilt ="";
if(courseId !=undefined){
linkbuilt='http://new.culturealley.com/?courseId='+courseId+'&utm_source=facebook&utm_medium=FeedStatus&utm_campaign=FBFeedStatus';
}else{
linkbuilt='http://new.culturealley.com/?utm_source=facebook&utm_medium=FeedStatus&utm_campaign=FBFeedStatus'
}
FB.ui({
method: 'feed',
link: linkbuilt,
caption: "I started today and can already introduce myself in "+toLanguagePreference+".",
ref: 'statuspost', name:"Learn "+toLanguagePreference+" with me!",
description:"Write back to me and tell me what your name is and click now to learn "+toLanguagePreference+" with me!",
source:"https://s3.amazonaws.com/ca_web/Gamification/img/story+560px.png"
}, function(response){
console.log(response);
//anything else we want to do here...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment