duanchensou8685 2014-05-20 17:06
浏览 40
已采纳

我可以自己托管Wordpress插件,但允许其他用户从中受益吗?

I'm developing a Wordpress plugin that requires API credentials for Facebook.

Ordinarily I'd advise the users of the plug-in to sign up for their own API keys and allow them to be entered as plug-in options, however this plug-in requires extended permissions. Which as I'm currently in the process of finding out are an absolute ball-ache to get, take up-to 7 businesses days to have reviewed and the reviewers don't actually read the requested instructions on how the application is being used.

Can I write a plugin that is basically a wrapper around my hosted version of the code, this way I can allow users of the plugin the benefits of the extended permissions without giving away my APP ID and APP SECRET

Thinking something like...

require_once("https://www.myplugin.com/FacebookPlugin.php");

Here's the obvious problem, this wouldn't work for hosted versions of Wordpress as they don't have access to plug-ins anyway and I believe it would require the owner to allow remote file inclusion, which is putting a lot of trust in me as the host of the remote file not to execute nasty scripts on their server.

So how do I offer the functionality of my plugin to other users?

  • 写回答

1条回答 默认 最新

  • douhuan4699 2014-05-20 17:30
    关注

    I think this question is closely related to this question.

    I do not think there's more you can do, except still having your separate server which can be triggered using HttpRequest::send from within the plugin, and ship encrypted Keys from there each time somebody is accessing your plugin.

    Might be a performance-Killing approach, though, especially if your server is not that fast.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?