-
Notifications
You must be signed in to change notification settings - Fork 37
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
sharer.php despite appId #37
Comments
Had the same problem, see #38, you can use lovetostrike:shareit as a workaround or clone this repo into your packages until the package on atmosphere is updated. Both work as expected, but the currently published version doesn't have the option of using FB.ui unfortunately. |
ahh, thanks @smowden! I was browsing the github code and couldn't understand why it didn't work. will try the lovetostrike fork for the time being. thanks again! |
hey @smowden, did you get the one from lovetostrike to actually work? for me it 1) doesn't care what i put in the config, like useFB: true/false doesn't matter, always shows all 4 sharing buttons. 2) click on FB buttons throws a reference error to tell me FB is unknown. |
I am working to get this tested and released guys. |
@thomasspiesser I worked around this by initing FB.UI myself (include the fb script and call FB.init) |
I am less familiar with facebook UI scripts. Couldn't we just append the appId on the share url? Is there some advantage to FB.ui in js? |
See:
|
no idea |
from their docs: If you are using the URL redirect dialog implementation, then this will be a full page display, shown within Facebook.com. This display type is called page. |
Any progress on this? |
_bump_ |
Hi did you get fix the FB is not defined issue? |
@irode001 you need to install the Facebook SDK (e.g. https://atmospherejs.com/biasport/facebook-sdk) to get rid of the FB.UI not defined bug. Additionally you need to add the version-Number for the Facebook API when initializing it:
|
It is little more complex and readme confusion is taking it's toll too. So if you want to use that FB auto init, you need to detect if FB was already loaded and if not initialize it. Or if autor add function to check this it would be best. Separate for twitter and facebook. And than during our template render it would run Or we can in our templates detect if FB object is defined, if not call ShareIt.init({autoInit: true}); But I prefer the one with internal state and functions checking it per service, cause even the initialization can fail due to network issues etc. |
Thanks for this great package!
I have a small issue though. I configure my appId like so:
Still, I don't get the dialog but the sharer.php. Any idea, what i might be doing wrong here?
The text was updated successfully, but these errors were encountered: