Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8429837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:26:50+00:00 2026-06-10T05:26:50+00:00

A fangate is a method to check if user likes the page where the

  • 0

A fangate is a method to check if user likes the page where the app is, if so, he can view the content.

I’ve been trying for a while to do a fangate with rest-graph gem.

rest_graph_setup(
  :write_session => true,
  :iframe => true,
  :auto_authorize => true,
  :auto_authorize_scope => 'email',
  :app_id        => ENV['FB_ID'],
  :secret        => ENV['FB_SC'],
  :write_cookies => true,
)
raise rest_graph.get('me/likes/PAGE_ID').inspect

Thats the way I connect to the app and get, in theory, the status (/USER_ID/likes/PAGE_ID). But nothing happens, I got an empty array for a PAGE_ID I liked.

I also tried fql method

raise rest_graph.fql('SELECT uid FROM page_fan WHERE page_id=PAGE_ID AND uid=USER_ID').inspect

But again, I get an empty array.

So, any ideas for this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:26:52+00:00Added an answer on June 10, 2026 at 5:26 am

    Looks like you don’t have the user_likes permission in the scope. Add it like

    rest_graph_setup(
      :write_session => true,
      :iframe => true,
      :auto_authorize => true,
      :auto_authorize_scope => 'email,user_likes',
      :app_id        => ENV['FB_ID'],
      :secret        => ENV['FB_SC'],
      :write_cookies => true,
    )
    raise rest_graph.get('me/likes/PAGE_ID').inspect
    

    And that will probably solve your issue

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a Facebook fan-gate that when a user likes my page it
I'm trying to build a Facebook 'fangate' tab or 'reveal' tab for a Facebook
I'm working on a Facebook fan page app (a page tab) with a 'like'
I've just thrown together a quick Facebook iFrame fangate app, where you must like
I have created a Page Tab Facebook App where I want to display different
I'm creating an app for a client that requires French content to be displayed
Desired Behavior: After using the Like button on top of my fan page, I
I've created a Facebook fan page that works as a fan gate / like
This is the first Facebook App i've created since the Timeline changes. Everything appears
I am developing a Facebook page tab that will hold a competition. So firstly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.