The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Adding facebook login to html5 game.

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #185946


    This is a bit of complex question that I have and probably have a complex answer. The thing is I made a html5 game with canvas and javascript from looking up on google. The code of which is here :

    See the Pen vpilk by Abdul (@crazyboy24) on CodePen.
    <script async src=”//”></script>

    What I want is, when the game is over, ask the user to sign in through facebook to submit his score, and if he does his score gets displayed on the right of the game along with his facebook name if his score is among the top ten score, or else if he does not want to log-in his score does not get displayed.
    If the user logs-in and submit the score, he gets registered for the freebie.

    I have added “play again” option. I just wanted to know how to add facebook login and display the high score.

    I hope you guys help me with this topic.


    Sorry, here is the CodePen

    &lt;p data-height="409" data-theme-id="9165" data-slug-hash="oGxAn" data-default-tab="result" data-user="crazyboy24" class='codepen'&gt;See the Pen &lt;a href=''&gt;oGxAn&lt;/a&gt; by Abdul (&lt;a href=''&gt;@crazyboy24&lt;/a&gt;) on &lt;a href=''&gt;CodePen&lt;/a&gt;.&lt;/p&gt;
    &lt;script async src="//"&gt;&lt;/script&gt;

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.