Created
January 31, 2014 22:11
-
-
Save xenda/8744313 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
def get_token | |
canvas = Canvas.new | |
if params[:signed_request] | |
session[:signed_request] = canvas.parse_signed_request(params[:signed_request]) | |
if canvas.liked_page? | |
#show contente | |
else | |
# like this bitch | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment