• Resolved rhdesign

    (@rhdesign)


    Hello,
    I got this plugin installed and configured for most of the sharing I want to do, however, when it comes to Facebook sharing, whenever I put my App ID in the textfield in settings and then try to save the settings, my Facebook APP ID is replaced with another number (completely different from my app ID and I have no idea where the number comes from). At first I thought this was a unique identifier for my app ID from this plugin but then i noticed in the source code of my blog, it is referencing the new number in the Facebook API call and therefore I get an error that it is an invalid App ID. When i change the APP ID manually in the console via inspect element, the sharing works fine so I know my App Id is correct, I just can’t get this plugin to save my actual App Id.

    I have tried deactivating and reactivating the plugin and i get the same results…the number it replaces is always the same number too which tells me its something in the plugin that is causing it. Any ideas

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Ronald Huereca

    (@ronalfy)

    What is your current APP ID and What’s the APP ID that it is changing to?

    Thread Starter rhdesign

    (@rhdesign)

    Our actual App Id is this: 450026155391678

    and when I type or paste it in the textbox and try to save the settings, it changes to this: 2147483647

    Plugin Author Ronald Huereca

    (@ronalfy)

    That is weird. What host are you on? For my testing, it was a caching issue. Once I cleared the cache from the host, everything worked fine.

    An alternative is to deactivate and delete the plugin, then re-add it and configure your settings from scratch.

    Thread Starter rhdesign

    (@rhdesign)

    For this specific implementation, this is on the DEV version of our site which is hosted internally/locally. We don’t really have caching setup for the admin portion of WordPress so I’m not sure what could possibly be cached other than browser cache which would not come into play with this problem.

    One of my other developers happened to notice that the number being swapped (2147483647) coincides with the maximum positive value for a 32-bit signed binary integer (2,147,483,647) which is too specific to be coincidence I think…I’m wondering if our App ID maybe happens to be larger than your plugin is expecting (although I would guess most Facebook App Id’s would be the same size)?

    Plugin Author Ronald Huereca

    (@ronalfy)

    @rhdesign

    Can you try https://github.com/ronalfy/highlight-and-share/archive/master.zip and get back to me? I changed the way the Facebook APP ID is saved.

    If that works, I’ll release an update.

    Thread Starter rhdesign

    (@rhdesign)

    @ronalfy that worked perfectly, thank you!

    Plugin Author Ronald Huereca

    (@ronalfy)

    Ok, I’ll push out a release shortly.

    Plugin Author Ronald Huereca

    (@ronalfy)

    @rhdesign,

    2.4.1 has been released with the fix. Resolving. Please leave a rating if you have a chance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Facebook App ID Changing when settings are saved’ is closed to new replies.