Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

facebook returns broken json when using callback #17

Open
skecskes opened this issue May 30, 2015 · 0 comments
Open

facebook returns broken json when using callback #17

skecskes opened this issue May 30, 2015 · 0 comments

Comments

@skecskes
Copy link

I have found in my google webmasters tools that each post which has facebook share button with counter is blocked. The blocked url in GoogleWebTools is in this format:

http://graph.facebook.com/?id=https://github.com/darklow/social-share-kit&callback=cb_facebook_3590

So its fb graph url, then the id is website and then there is callback. The response is not blocked, but is broken json due to callback variable:

/**/ cb_facebook_3590({"id":"https:\/\/github.com\/darklow\/social-share-kit"});

Seems that facebook doesn't like callback variable name because when I change it to cb it automagically works:

http://graph.facebook.com/?id=https://github.com/darklow/social-share-kit&cb=cb_facebook_3590
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant