J!Extensions Store™
Forum
Welcome, Guest
Please Login to access forum.
Re:FB shares counter Error and Updates (1 viewing) 
Go to bottom
TOPIC: Re:FB shares counter Error and Updates
#5945
John Dagelmore
Admin
Posts: 3253
User Offline
Re:FB shares counter Error and Updates 8 Months, 3 Weeks ago Karma: 72  
Also your hosting should see the error in your message: 403 Forbidden
This could mean that Facebook blocked their server IP.
 
Logged Logged  
  The administrator has disabled public write access.
#5958
Raj
Fresh Boarder
Posts: 5
User Offline
Re:FB shares counter Error and Updates 8 Months, 3 Weeks ago Karma: 0  
Hi John,

Thought I'd share these comments I have received from the host.

Hi, thanks for providing those replication steps to see the issue. I was able to reproduce the error. Warning: file_get_contents(https://graph.facebook.com/?id=http%3A%2F%2Ftaletown.org%2Fen%2Fliterature%2Fhow-to-stories%2F316-how-to-fill-air-in-a-car-tyre): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home4/taletown/public_html/plugins/content/fastsocialshare/fastsocialshare.php on line 148

This didn't indicate a conventional PHP function error. Rather, this indicates Facebook literally responding to the request with a 403 error. When trying to retrieve the page directly from the server, the issue becomes a bit more clear.

[root@gator4176 /home4/taletown/public_html]# curl https://graph.facebook.com/?id=http%3A%2F%2Ftaletown.org%2Fen%2Fliterature%2Fhow-to-stories%2F316-how-to-fill-air-in-a-car-tyre
{"error":{"message":"(#4) Application request limit reached","type":"OAuthException","is_transient":true,"code":4,"fbtrace_id":"BnF63V3hyLX"}}

Facebook appears to be ratelimiting the calls being made. Facebook ratelimits on a per-app basis based on the app's auth token. They go into greater detail in the link below.
https://developers.facebook.com/docs/graph-api/advanced/rate-limiting

Now, it's not entirely clear how this all works out between Joomla, the fastsocialshare extension, or Facebook, but I would start by contacting the developers of the extension with this ratelimiting detail above.
 
Logged Logged  
  The administrator has disabled public write access.
#5959
John Dagelmore
Admin
Posts: 3253
User Offline
Re:FB shares counter Error and Updates 8 Months, 3 Weeks ago Karma: 72  
Mmmm it looks completely wrong to me.
First of all the PHP warning means that a call is not made at all.
Secondly, there are no app ID, auth token or requests rate limit. It's a public api that everyone can contact, for example opening in your browser the link: https://graph.facebook.com/?id=http%3A%2F%2Ftaletown.org%2Fen%2Fliterature%2Fhow-to-stories%2F316-how-to-fill-air-in-a-car-tyre
 
Logged Logged  
 
Last Edit: 2016/10/31 09:58 By @store$eco#mm!.
  The administrator has disabled public write access.
#5963
Raj
Fresh Boarder
Posts: 5
User Offline
Re:FB shares counter Error and Updates 8 Months, 3 Weeks ago Karma: 0  
Hello John,

Hosting provider response: I can assure you that the PHP warning indicates that the call is being made to the link, and Facebook is returning a 403 error. "failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden" This is the integral piece of the PHP warning. This means that the other web-server returns the 403 status code. This is not an internal error that indicates problems with PHP itself.

When I first enabled the Facebook Share button, no errors were appearing, and I could curl the URL without error. Only after it indicated that Facebook was ratelimiting the URL did the 403 errors show up. Upon enabling the facebook share button once more, there did not appear to be any errors. This reinforces the ratelimit information. If your developer is unable to offer further information, you might try contacting Facebook support for more information about the ratelimiting and how it occurs.

While we're happy to help, we're not developers, so much of this falls outside our scope of support. We're frequently limited by what we see when reviewing the server itself.
 
Logged Logged  
  The administrator has disabled public write access.
Go to top