Skip to content

Add domain whitelisting - #45

Open
guilebc wants to merge 1 commit into
tgallice:masterfrom
guilebc:domain-whitelisting
Open

Add domain whitelisting#45
guilebc wants to merge 1 commit into
tgallice:masterfrom
guilebc:domain-whitelisting

Conversation

@guilebc

@guilebc guilebc commented Feb 22, 2017

Copy link
Copy Markdown
Contributor

Domain whitelisting feature for the Messenger Extensions & Plugin Checkbox.
https://developers.facebook.com/docs/messenger-platform/thread-settings/domain-whitelisting

Tell me if ok for you.

{
return [
DomainWhitelisting::WHITELISTED_DOMAINS => $this->domains,
DomainWhitelisting::DOMAIN_ACTION_TYPE => $this->action

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this is needed ? No mention of that in the documentation.

Comment thread src/Messenger.php
* @return array
*/
private function buildSetting($type, $threadState = null, $value = null)
private function buildSetting($type, $threadState = null, $value = null, $mergeValueWithSetting = false)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation look like to be updated. No need to threadState and setting_type anymore. Maybe a rewrite of this function should be better.


use Tgallice\FBMessenger\Model\ThreadSetting\DomainWhitelisting;

class WhitelistedDomains

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about the need of this class. Or It's should be more generic. Maybe rename DomainWhitelisting to DomainWhitelist and used it instead of WhitelistedDomains. The DomainWhitelist should contain only domain list.

@tgallice

tgallice commented Mar 5, 2017

Copy link
Copy Markdown
Owner

@guilebc sorry for the delais, just some comments but it's cool 👍 thank.

@Shaked

Shaked commented Aug 16, 2017

Copy link
Copy Markdown
Contributor

@tgallice - is there a plan to merge this pull request?

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

Successfully merging this pull request may close these issues.

3 participants