Plugin Name: Ultimate Facebook
Author: Ve Bailovity (Incsub)
Contributors: Umesh Kumar, Julien Zerbib

Change Log:
----------------------------------------------------------------------
----------------------------------------------------------------------

2.8.1.2 - 2015-12-17 - Julien Zerbib
- Fixed: Import comments for new FB Graph API

2.8.1.1 - 2015-11-24 - Julien Zerbib
- Fixed: The auto posted post title contained HTML tags
- Added: Primary User so FB auto post accounts come from him only
- Removed: 'login_form_bottom' filter that was causing a duplicate FB login button

2.8.1 - 2015-10-02 - Julien Zerbib
- Added: Editor can chose the FB account he is publishing in
- Added: Publishing Title, Account and Publish are saved when the post has a draft status

2.7.9.6 - 2015-07-22 - Umesh Kumar
- Fixed: Permissions issue for new APP
- Fixed: Album selector not working
- Fixed: Crop Image, if enabled in album widget/shortcode
- Added: One CLick Registration to signup
- Removed: Facebook Recommendation, FacePile, Activity Feed (Discontinued by Facebook)

2.7.9.5 - 2015-04-24 - Umesh Kumar
- Fixed: Settings for like and send button on home page and archive pages

2.7.9.4 - 2015-04-23 - Umesh Kumar
- Fixed: Updated permissions required for Auto Posting

2.7.9.3 - 2015-04-21 - Umesh Kumar, Jose Jaureguiberry
- Fixed: Event timezone field not being retrieved
- Fixed: Use post content for description instead of blog description
- Fixed (Important - Security): Fix query argument escaping to avoid XSS vulnerability

2.7.9.2 - 2015-01-19 - Umesh Kumar
- Fixed:    Comment author facebook URL fixed
- Fixed:    Network Settings - Override all blog settings and Preserve individual blog api settings

2.7.9.1 - 2015-01-08 - Umesh Kumar
- Fixed:    replaced comment_text filter with get_comment_text to fix notice and warnings
- Fixed:    Fixed recent comment widget avatar checkbox in backend
- Fixed:    Comments order in recent comment widget

2.7.9 - 2014-12-15 - Umesh Kumar
- Updated:  Album widget styling change ( check changes before updating on live )
- New:      Option to display photo description in facebook albums
- New:      Validate Facebook APP Secret with APP ID
- New:      Allow users to display album pictures in widget using thickbox
- New:      On uninstall : Delete API settings and default tokens list, remove comments import cron
- Fixed:    Album not displayed if no limit is specified in shortcode
- Fixed:    User id and token issue ( Albums not showing up, due to invalid token )
- Fixed:    Permissions logic
- Fixed:    Disable signup using Facebook if registration is disabled on site
- Updated:  Facebook registration plugin expiry notice

2.7.8 - 2014-11-24 - Umesh Kumar
- New: Skip autopost option for individual posts
- New: 'wdfb-opengraph_apply_the_content_filter' filter added for developers. Returns a boolean.
- Updated: Manual Publishing on Facebook for posts
- Fixed: Warnings

2.7.7 - 2014-10-27 - Umesh Kumar
- Fixed: Autoimport for comments
- Fixed: Character encoding issue due to emojis
- Fixed: Autoposting for posts published using Ajax
- New:   Allow publishing old posts in editor mode

2.7.6 - 2014-09-8 - Umesh Kumar
- New:  Added support for importing emoji's in Facebook comments
- New: Support for bigger images in Autoposting
- Updated: Facebook SDK, notification for captcha error on registration page
- Updated: Refresh auth tokens code to allow changes in API and user details
- Fixed: Select album for Album widgets
- Fixed: Color Scheme setting for comments

2.7.5 - 2014-07-30 - Umesh Kumar
- Fixed: Facebook incorrect album id

2.7.4 - 2014-07-30 - Umesh Kumar
- Fixed: Facebook login form not hooked in wp_login_form

2.7.3 - 2014-07-30 - Umesh Kumar

- Added:    'wdfb_show_comment_form' Filter to turn off facebook comment form for a specific post id
- Fixed:    Album Shortcode
- Fixed:    Facebook comment form not displayed if Override WordPress Settings is enabled
- Improved: Registration Page template ( Added hooks before and after facebook registration form )

2.7.2 - 2014-06-20 - Umesh Kumar
- Added: Read Events from Facebook shortcode and widget

2.7.1 - 2014-06-5 - Umesh Kumar
----------------------------------------------------------------------
- Fixed: Facebook Registration iframe src
- Validate email for Facebook registrations
- Updated code to support facebook API v2
- REMOVED: Facebook EVENTS and NOTES support
- Updated permission list
- Fixed warnings, fixed js reload on settings page

2.7 - 2014-05-16
----------------------------------------------------------------------
- Added author notification for Facebook comments.
- Added new options for permissions selection.
- Improved permissions selection.

2.6.6 - 2013-09-23
----------------------------------------------------------------------
- Fix for mixed content issue on registration page.
- Fix for imported event timezones.
- Better "more" tag handling in content publishing.
- Added content filtering for image content.

2.6.5 - 2013-06-14
----------------------------------------------------------------------
- Settings for archive pages buttons.
- Support for events limiting.
- Fix for redirection issues with certain parameters.

2.6.4 - 2013-04-29
----------------------------------------------------------------------
- Fix for scheduled semi-auto publishing.
- Fix for localized IFRAME buttons.
- Fix for buttons with more activities.
- Added photo title support in album shortcode.

2.6.3 - 2013-03-31
----------------------------------------------------------------------
- Added per-blog cache operations area.
- Added color scheme settings box.
- Wrapping the base Facebook exception class.
- Ensuring brief logger messages.
- Added optional XFBML option for BuddyPress activities button.

2.6.2 - 2013-02-08
----------------------------------------------------------------------
- Network connection data loading.
- Stripping extra markup.
- Using internal flag to make sure the scripts are loaded in time.

2.6.1 - 2013-02-05
----------------------------------------------------------------------
- Network settings fix.
- Async loading and new script placement options.
- Allowing responsive FB comments hack.
- Showing stored post title for scheduled posts.
- Adding optional activity feed update on registration.

2.6 - 2013-01-24
----------------------------------------------------------------------
- Added option for BuddyPress groups info sync, minus avatar.
- Added more hooks.
- Added custom post type support for comments import.
- Fix for comments import issues.
- Fix for filter nesting check.
- Allowing admin nag skips with a define.
- Account limiting via define flag.
- Trumping WordPress discussion settings by default.

2.5.4 - 2012-11-21
----------------------------------------------------------------------
- Added the Facebook avatars override option.
- Added paged setting saves for large networks.
- Added generic access token fallback for events graph api calls.
- Fix for prefiltering checks.

2.5.3 - 2012-11-10
----------------------------------------------------------------------
- Recognizing Jetpack-encoded shortlinks.
- Hierarchical data imports.

2.5.2 - 2012-11-03
----------------------------------------------------------------------
- Fix for overzealous avatar override.
- Fix for non-BuddyPress sites tooltip help item.
- Added feed fetching error log entry and url-to-post ID map wrapper.
- Branching out for comments import.
- Added pre-initialization FB curlopts filtering.

2.5.1 - 2012-10-09
----------------------------------------------------------------------
- Multi-values BuddyPress fields query returns only top-level choices.
- Exposing per-field WP profile syncing filter.
- Events widget reverse order setting.
- Fix for OpenGraph custom header increments.

2.5 - 2012-09-21
----------------------------------------------------------------------
- Fix for BuddyPress heuristics.
- BuddyPress activity native button support.
- Allowed footer hook in a define, for WP-incompatible themes.
- Added HTML5 vs XFBML tag format dispatcher.
- Added auto-login on registration option.

2.4.1 - 2012-09-02
----------------------------------------------------------------------
- Fix for BuddyPress activity items logic in OpenGraph url.
- Fix for cursor-based paging items fetching through batch requests.
- Added color scheme selection for Facebook Comments.

2.4 - 2012-08-22
----------------------------------------------------------------------
- Deprecated simple redirection logic.
- Added optional exact redirect url fallback.
- Resizing avatars to thumbnail size, added optional auto-crop.
- Activity updates publishing to personal and sitewide feed.
- Optional identity renewal link.

2.3 - 2012-08-09
----------------------------------------------------------------------
- Added OpenGraph metabox and augmented per-post overrides.
- Central OpenGraph property handling.
- Exposed more filters.

2.2.3 - 2012-07-25
----------------------------------------------------------------------
- Fix for limit attribute in albums shortcode.
- Fix for protocol mismatch in mixed HTTPS/HTTP environments.

2.2.2 - 2012-07-09
----------------------------------------------------------------------
- Using bundled datepicker in events widget.
- Replacing deprecated calls, typo fixes, silencing notices.
- Added filtering for login redirection URL.
- Added macro expansion for URL redirection.
- Added avatar size attribute to connect shortcode.

2.2.1 - 2012-06-29
----------------------------------------------------------------------
- Fix for permissions check procedure.
- Fix for button width issue.
- Silenced some debug mode output.


2.2 - 2012-06-15
----------------------------------------------------------------------
- Fix for long-term tokens handling.
- Fix for autopost warnings.
- Filtering profile name, with sensible default.
- Added LikeBox widget filterable hiding logic.
- Added Facebook avatar size mapping to admin gravatar filters.
- Added registration postprocessing filter.

2.1 - 2012-04-30
----------------------------------------------------------------------
- Deprecated offline_access.
- Fix for title OpenGraph issue.
- Fix for plugin conflict.
- Added new permissions level (extras). 

2.0.1 - 2012-03-24
----------------------------------------------------------------------
- Improved OpenGraph tags generation.
- Improved Facebook album photos shortcode handling.
- Recalculating necessary widths for Like buttons.
- Added metabox override caching for delayed autoposting.
- Fix for https issues with linked resources.
- Fix for address mapping.
- Fix for activity feed widget.

2.0 - 2012-01-26
----------------------------------------------------------------------
- Added contextual help and pointer tutorial.
- Added album shortcode.
- Improved settings.
- Improved performance.

1.6.2.1 - 2012-01-03
----------------------------------------------------------------------
- Silenced debug output.

1.6.2 - 2011-12-27
----------------------------------------------------------------------
- Workaround for late cookie setting issue.

1.6.1 - 2011-12-22
----------------------------------------------------------------------
- Added locale support to widgets.
- Fix for login issues under certain conditions.

1.6 - 2011-12-15
----------------------------------------------------------------------
- Added recently imported comments widget.
- Switched to new method of permissions requesting.
- Added an option for making a Facebook account an absolute requirement.

1.5.1 - 2011-11-27
----------------------------------------------------------------------
- Added event title as link to event on Facebook.
- Added filtering to OpenGraph image finding results.
- Replaced images with better compressed ones - props KFUK-KFUM

1.5 - 2011-11-23
----------------------------------------------------------------------
- Fix for registration URL.
- Fixes for script elements.
- Styling fixes.
- Added support for additional OpenGraph headers.
- Allowed for registration page templating - props KFUK-KFUM.
- Better optional registration button placement on single sites - props riyaku.
- Events sorting direction added to shortcode.

1.4.3 - 2011-10-28
----------------------------------------------------------------------
- Fix for Facebook registration form.
- Fix for uniform options propagation to registration widget and page.
- Added registration options filtering mechanism.

1.4.2 - 2011-10-23
----------------------------------------------------------------------
- Fix for FB buttons with nested posts.
- Fix for autposting escaping and stripping.
- Fix for registration redirection issues with BuddyPress 1.5
- Support for frontend posting posting plugins.

1.4.1 - 2011-10-17
----------------------------------------------------------------------
- Fix for BuddyPress avatars import.
- Added forced Facebook locale settings.
- Added optional login redirection settings.

1.4 - 2011-10-10
----------------------------------------------------------------------
- Merged App ID and API key fields.
- Fixed autoposting on Facebook for scheduled posts.
- Fixed conflict with single-line oEmbeds.
- Added granular permissions framework
- Added Activity Feed widget.

1.3.1 - 2011-09-21
----------------------------------------------------------------------
- Fix for publishing posts without images.
- Fix for default Likebox height.
- Updated posts not published on FB will remain unpublished on subsequent updates - unless overriden manually.

1.3 - 2011-09-18
----------------------------------------------------------------------
- Added error logging for Facebook publishing.
- Added height attribute for the Like Box widget.

1.2.2 - 2011-09-14
----------------------------------------------------------------------
- Fix for importing and displaying Facebook avatars.
- Fix for post as page hangups.
- Fix for not fetching pages info bug
- Added new optional setting for linked account info fetching
- Added trimming app id and secret key to prevent possible whitespace issues.
- Added async mapping of account IDs to names (Comments Import)

1.2.1 - 2011-09-09
----------------------------------------------------------------------
- Added Facebook Connect shortcode.
- Optional permission check notice auto-updated.
- Fix for comments notices.
- Applied multiple app security patch.

1.2 - 2011-08-24
----------------------------------------------------------------------
- Added permission granting improvement.
- Fix for workarounds for default certificate usage.
- Fix for fallback image on home page first.
- Fixes for undefined variables.
- Fix for New blogs to be public by default.
- Fix for style injection conflict with gridmarket.

1.1.4.1 - 2011-08-17
----------------------------------------------------------------------
- Switching between IFRAME/XFBML buttons on front page.

1.1.4 - 2011-08-16
----------------------------------------------------------------------
- Fix for front page Like buttons

1.1.3 - 2011-08-15
----------------------------------------------------------------------
- Fixed site home OpenGraph for moved root installs.
- Added image cropping option to Albums widget.

1.1.2 - 2011-08-10
----------------------------------------------------------------------
- Fix for BuddyPress profile fields discovery in multidb setups.

1.1.1 - 2011-08-08
----------------------------------------------------------------------
- Forcing cookie cleanup after SDK.

1.1 - 2011-08-02
----------------------------------------------------------------------
- Improved new username creation.
- Post to Facebook metabox is now optional.
- Added notification in metabox for already published posts.
- Added "On Facebook" status columns to post/page management list.
- Optional register button looks a bit more like a button now.
- Made CAPTCHA image optional on registration.
- Optional preventing site admin access to plugin settings.
- Improved login/logout process.

1.0.9 - 2011-07-20
----------------------------------------------------------------------
- Fix for unchecking "post as page" checkbox issue.
- Fix for posting as page and gathering API info on subsites.
- Avatar importing for BuddyPress defaults to a large picture.

1.0.7 - 2011-06-25
----------------------------------------------------------------------
- Added "show on front page" option for Like buttons.
- Added publishing to Facebook page *as* page.
- Improved error handling and user notification for Facebook publishing.
- Fix for Membership shortcodes.

1.0.6.1 - 2011-06-21
----------------------------------------------------------------------
- Fix for styles and scripts loading on admin pages.

1.0.6 - 2011-06-19
----------------------------------------------------------------------
- Added events shortcode attributes, "starting_from" and "only_future".
- Added custom hook field for Facebook Comments.
- Added support for OpenGraph type property.
- Fixed the wording for Autpost settings.

1.0.5 - 2011-06-17
----------------------------------------------------------------------
- Added single-click registration option. 
- Added basic WP avatar support to Connect widget.
- Full registration allows for site creation, if enabled in network options.
- Added option for hiding API credentials from sub-site admins.
- Post length quickfix for autoposting.
- Allowing one dimension to be omitted in Facebook Album widget, so the images are properly scaled.
- Added additional settings for Facebook Comments.
- Added optional URL attribute for the Facepile widget.

1.0.4 - 2011-06-14
----------------------------------------------------------------------
- Added filtering past dates to Facebook Events widget.
- Added some more fields to profile import.
- Fix for registration button at login in single site.
- Fix for shortcodes registration, so Membership pick them up.
- Fix for OpenGraph to play nice with Membership.

1.0.3 - 2011-06-11
----------------------------------------------------------------------
- Fix for registration listener.
- Facebook Connect widget fix: unbinding the click handlers before binding our own.
- Added datepicker to Facebook Events widget.
- Updated strings for l10n.
- Added more strings for translation.
- Applied grola's fix for fetching the first post image.

1.0.2 - 2011-06-09
----------------------------------------------------------------------
- Added "forced" attribute to FB Like button: overrides post types negative filter.
- Changed targeting for Facebook Connect widget tab triggers to be more precise.
- Added class name to Like button wrapping div, for styling.
- Added an option for overriding the WordPress discussion settings.
- Added date threshold parameter for Facebook Events widget.


389558-1456772274