ios - Auto-liking my mobile app's FB page when a new user logs in using FB -


my company developing ios app , providing social media log-in options, thru facebook , twitter.

i have facebook account mobile app (there won't facebook version app, regular fb account).

my question this:

is possible automatically "force" new users of ios app "like" app's fb page when log-in thru facebook?

you cannot "force" them fb page. against facebooks tos , there no api doing can stop them using app if havnt liked page.

not 100% sure how in ios here sample script in php may give idea.

$this->load->library('facebook');  // gets signed request facebook $signed_request = $this->facebook->getsignedrequest();  //make sure page before can continue. $user_liked = (isset($signed_request['page']['liked'])) ? $signed_request['page']['liked'] : false;  if (!$user_liked) {     //add link facebook page or automatically redirect them fb page     echo '<a href="your_fb_page">please our facebook page before can use our app</a>';     die; }  // rest of code 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -