Title: Plugin accessing Facebook PUBLIC info
Last modified: August 22, 2016

---

# Plugin accessing Facebook PUBLIC info

 *  [big_s](https://wordpress.org/support/users/big_s/)
 * (@big_s)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/plugin-accessing-facebook-public-info/)
 * Hi,
 * I am writing a plugin that needs to get some basic public info from Facebook.
   I take the JSON returned and strip out the info I need. Simple.
 * Unfortunately the plugin call to get the FB data only works on my local stack,
   it doesn’t work on the hosting company server.
 * I have tried a cURL call:
 * `$ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $fb_url); curl_setopt($ch,
   CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);
   $fb_json = curl_exec($ch); curl_close($ch);
 * and a WordPress API call:
 * `$x = wp_remote_retrieve_body( wp_remote_get( "https://graph.facebook.com/nike"));`
 * to try to get the info. Both work on my local XAMPP install but neither work 
   on the hosting company.
 * Anyone any ideas why this would happen? The guys at the hosting company say they
   can’t help until I give them some error info but the calls simply return bool
   false so not much help.
 * Pulling my hair out!

The topic ‘Plugin accessing Facebook PUBLIC info’ is closed to new replies.

## Tags

 * [curl](https://wordpress.org/support/topic-tag/curl/)
 * [graph](https://wordpress.org/support/topic-tag/graph/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [public](https://wordpress.org/support/topic-tag/public/)

 * 0 replies
 * 1 participant
 * Last reply from: [big_s](https://wordpress.org/support/users/big_s/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/plugin-accessing-facebook-public-info/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
