Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore "Pages You Manage" to Facebook Add Page setting
The return value of the isAccoutPage function seems to be wrong. The 'type' attribute belongs to the account metadata. With this new conditional expression, both places are evaluated, and if in any one the attribute is present and the value is 'page', then the return value is true. DISCLAIMER: SOCIALMEDIA PROJECT - CEN-20101037 - This contribution has been kindly sponsored by the Centro para el Desarrollo Tecnológico Industrial within the Programa de Investigación Nacional Español CENIT. - http://www.cenitsocialmedia.es/ Co-authored by @ginatrapani: Added tests, cleaned up code style, added docblocks Closes #1321, closes #1334
- Loading branch information
1 parent
1d94477
commit f6e0b19
Showing
4 changed files
with
33 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
webapp/plugins/facebook/tests/testdata/107982202636989-metadata=true
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"id": "107982202636989", | ||
"name": "Sample Cause", | ||
"picture": "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc4/276798_107982202636989_4098521_s.jpg", | ||
"link": "https://www.facebook.com/pages/Sample-Cause/107982202636989", | ||
"likes": 1, | ||
"category": "Cause", | ||
"website": "<<not-applicable>>", | ||
"can_post": true, | ||
"id": "107982202636989", | ||
"name": "Sample Cause", | ||
"picture": "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc4/276798_107982202636989_4098521_s.jpg", | ||
"link": "https://www.facebook.com/pages/Sample-Cause/107982202636989", | ||
"likes": 1, | ||
"category": "Cause", | ||
"is_published": true, | ||
"can_post": true, | ||
"type": "page" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters