fbsamples / fbinstant-samples

Sample projects for the Facebook Instant Games platform
Other
257 stars 139 forks source link

Blocked opening [...] in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set. #16

Closed FilipLitwora closed 5 years ago

FilipLitwora commented 5 years ago

Its propably not the right place to ask this question but i couldnt find better. hi, im trying to implement facebook login in my "fb-insant" game, but when i click on the login button i get following error : Blocked opening [huge link here] in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set. My code responsible for auth:

 <div id="fb-root"></div>
    <script
      async
      defer
      crossorigin="anonymous"
      src="https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v3.3&appId=myID&autoLogAppEvents=1"
    ></script>
    <div
      class="fb-login-button"
      data-width=""
      data-size="large"
      data-button-type="continue_with"
      data-auto-logout-link="false"
      data-use-continue-as="true"
    ></div>

Thanks in andvance

chrishawkins commented 5 years ago

This is intentional. The Facebook JavaScript SDK is not supported in Instant Games. For future reference I would recommend the Instant Games community on developers.facebook.com or StackOverflow to get support with issues like this.