Using the Facebook SDK to determine whether the author has already followed and become a member of this site.

Source: Internet
Author: User
Tags api manual
Use the Facebook SDK to determine whether the author has already pressed the button and become a member of this site. Today, the company is going to do the activity. one of the active content is to ask the reporter to press facebook fans and then send the cash. facebook was promoted by everyone, and Baidu searched the company for activities today. one of the active content is to ask the reporter to click facebook fans to renew their posts, post-renewal to send cash. facebook was attacked by Facebook, and Baidu searched it and found that Facebook was rarely developed in China because of the reason why it was reported.

Facebook's API statement is actually very simple. you only need to use iframe to put the html token, but this time, because it involves cash, I don't want to use curl to capture the source region for fuzzy determination. that's very inaccurate. In addition, Chinese content has little to do with Facebook content. even if there is something, it is mainly a new category, even some technical posts are just a bit outdated, and it is useless now, even though it has been used as a substitute, as a result, the English version of the API manual for one night had to be neglected, the easiest thing we can find when we look at our hands is just pull (just like what I want to implement today is very special ), most importantly, I found https://developers.facebook.com/docs/reference/fql/. I want to explain FACEBOOK'S FQL. (this is a huge feature. you can achieve this by using FQL)

Before sending the proxy code, I would like to mention it in a simple way. to develop a facebook app, you must apply for his appid and secret, the application method is very simple from https://developers.facebook.com/apps? Action = create application is enough. The article will not be detailed later. (if you are interested, you can go to my QQ group 223494678 for further discussion ). with these two things, you still need to download the facebook SDK. the download address is

 Str type, indicating content when [0] = FALSE) usage: $ a = is_Like ('000000'); if ($ a [0] = TRUE) {echo 'already pressed into the cursor';} else {echo $ a [1];}/* is_Like () = ''){(, 'The Pink Shard ID cannot be blank! '('Src/facebook. php '= Facebook ('appid' => 'fill in the content you applied for ', 'secret' => 'fill in the content you applied ', 'cookies' => ,(! (, 'Added Facebook's API loss! '=-> (!) {= (, '-> GetLoginUrl ('scope' => 'Publish _ stream ')). '"> Click login to log on' {=-> api ('method' => 'fql. query', 'query' => 'Select page_id from page_fan where page_id = "'.. '"and uid = '.. ''() and ([0] ['page _ id']) and ([0] ['page _ id'])! = ''= (,'' = (, 'You have not pressed the token! '(,,,

I hope this article will play the role of zookeeper.

...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.