def shares!
return raise "It's Seems that you have not initilized ' SocialShareFeature.facebook_token_for_count = Your App ID|Your App Secret' in intilizer to use facebook count you need to do this please see usages in README." unless SocialShareFeature.facebook_token_for_count.present?
token = SocialShareFeature.facebook_token_for_count
response = get(URL, params: {
id: checked_url,
fields: 'engagement',
access_token: token
})
json_response = JSON.parse(response)
if json_response['engagement']
json_response['engagement']['share_count'] || 0
else
0
end
end