Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

dad4 #1160

Open
wants to merge 620 commits into
base: 4.0-dev
Choose a base branch
from
Open

dad4 #1160

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
620 commits
Select commit Hold shift + click to select a range
bed3bb5
Fix failing tests when mcrypt or openssl not installed
SammyK Feb 9, 2016
8e70f35
Remove mb-string dependency
SammyK Feb 9, 2016
24c10c9
Fix tests that fail with cURL is not installed
SammyK Feb 9, 2016
5202853
Update hash_equals polyfill to include xor in for loop
SammyK Feb 9, 2016
3858c7e
Update CSRF comparison to use hash_equals()
SammyK Feb 9, 2016
cd5e913
Update polyfills.php
paragonie-scott Feb 9, 2016
78bb4c9
Updated copyright year from 2014 to 2016.
jfreed Feb 9, 2016
1deb6b7
Merge pull request #3 from paragonie-scott/patch-1
SammyK Feb 10, 2016
4d81ee1
Fix formatting issue
SammyK Feb 10, 2016
80d7c60
Missed LICENSE and tests/FacebookTestCredentials.php.dist. Update fro…
jfreed Feb 10, 2016
6cfb1db
Add better error checking for app IDs as int when greater than PHP_IN…
SammyK Feb 11, 2016
f950a24
Merge pull request #553 from jfreed/update-copyright-year
gfosco Feb 26, 2016
fdd5d4a
Bump Graph version to v2.6
SammyK Apr 12, 2016
6547b91
Implementing new Birthday class to handle Graph API response variations
Apr 17, 2016
3ee3ac0
Correcting typos in Birthday docs
Apr 17, 2016
6b59698
Coding style violations, removing timezone
Apr 17, 2016
e4e6df7
Setting Birthday variables to private, moving Birthday docs link to m…
Apr 19, 2016
2cfda40
Updating logic for x_forwarded_host
gfosco Apr 19, 2016
6239abd
Typo fix in FacebookRequest DocBlock
danielfleck Apr 30, 2016
a76ab00
Merge pull request #579 from danielfleck/fix-typos-in-facebook-reques…
SammyK May 3, 2016
7ee89e3
Update README.md, correctly reference Facebook
paddyohanlon May 9, 2016
4425246
Avoids using unserialize to prevent Object Injection security issue.
May 9, 2016
44cd4c2
Uses implode/explode instead of json decode as it is vulnerable to ha…
May 9, 2016
40c74a2
Updating per feedback.
Apr 19, 2016
72ddbe4
Merge pull request #574 from facebook/fosco.xforwarded
gfosco May 10, 2016
c51f90d
updating to 5.1.3
May 10, 2016
3279e1b
Add breaking change warning to changelog
May 11, 2016
810c127
Merge pull request #582 from facebook/fix-object-injection
gfosco May 13, 2016
38fd718
Updated to 5.1.4
May 13, 2016
2c14499
Merge pull request #552 from SammyK/remove-mb-string
SammyK May 18, 2016
6727ffa
Use Composer safe versions
EmanueleMinotto Feb 10, 2016
bed3257
Merge pull request #554 from EmanueleMinotto/composer-best-practice
SammyK May 18, 2016
69b363d
Update CHANGELOG and bump version
SammyK May 18, 2016
23eafab
Merge pull request #573 from nickma42/birthday-behavior
SammyK May 18, 2016
ea65829
Merge pull request #571 from SammyK/graph-v2.6
SammyK May 18, 2016
bbcae90
Merge pull request #556 from SammyK/app-ids-as-string
SammyK May 18, 2016
c60fba1
Update CHANGELOG and bump version
SammyK May 18, 2016
0ed1163
Change return type of getThrownException
tolbon May 20, 2016
4afdee8
Merge pull request #586 from tolbon/patch-1
SammyK May 20, 2016
a883d83
Fix: Reduce visibility of setUp()
localheinz May 21, 2016
ca5f4ba
Fix: Actually append Test to name of file containing test
localheinz May 21, 2016
ea60444
Fix: Remove unused imports
localheinz May 21, 2016
eac40c4
Fix: Remove unused local variables
localheinz May 21, 2016
5ff7c3d
Fix: Attempt to cache dependencies between builds
localheinz May 21, 2016
fa02dcb
Merge pull request #589 from localheinz/fix/visibility
SammyK May 21, 2016
5ee433d
Merge pull request #590 from localheinz/fix/test
SammyK May 21, 2016
3164515
Merge pull request #591 from localheinz/fix/unused
SammyK May 21, 2016
f9e3ae3
Merge pull request #592 from localheinz/fix/unused-local-variables
SammyK May 21, 2016
5d1a9f1
Added a note to changelog.
May 23, 2016
6104ac7
Merge pull request #593 from localheinz/fix/cache
SammyK May 24, 2016
d8dd22e
Enhancement: Extract configuration file for phpcs
localheinz May 21, 2016
7379ae6
Enhancement: Require code in tests/ to be PSR-2-compliant
localheinz May 21, 2016
4499845
Fix: Extract class definitions, indentation
localheinz May 21, 2016
1abcc66
Corrected phpDoc comment for binToHex
NinoSkopac May 25, 2016
1f54c60
Fix: Move test assets to Fixtures namespace
localheinz May 25, 2016
1f20f7e
Merge pull request #597 from NinoSkopac/patch-1
SammyK May 26, 2016
c57935a
Merge pull request #594 from localheinz/fix/phpcs
SammyK May 26, 2016
40252bf
fixed issue#598
voku May 29, 2016
88a4a59
FacebookRedirectLoginHelper::makeUrl() - not generating new state if …
Jun 14, 2016
b5bd073
Fixed issue when Notice "Undefined variable: header" occured on PHP 7.0
Aug 5, 2016
f7ca208
Merge pull request #626 from lutskanu/master
SammyK Aug 6, 2016
b44e2f4
Merge pull request #613 from KuceraMartin/master
SammyK Aug 6, 2016
499d0e4
Reset the CSRF so that it does not get reused
SammyK Aug 6, 2016
535eb8a
Merge pull request #628 from SammyK/master
SammyK Aug 6, 2016
59750b8
Merge pull request #599 from voku/autoload_polyfills
SammyK Aug 6, 2016
5fc7fb0
Finish off #599
SammyK Aug 6, 2016
1a9b2e7
Merge pull request #629 from SammyK/finish-599
SammyK Aug 6, 2016
df40085
Merge pull request #581 from paddyohanlon/patch-1
SammyK Aug 6, 2016
440e577
Finish off #581
SammyK Aug 6, 2016
6af17f9
Merge pull request #630 from SammyK/finish-581
SammyK Aug 6, 2016
c16003f
Update CHANGELOG
SammyK Aug 6, 2016
830aca1
Merge pull request #631 from SammyK/update-changelog-5.2.1
SammyK Aug 6, 2016
8e5d9ae
Bump Graph API version to v2.7
SammyK Aug 6, 2016
d1bbd31
Merge pull request #632 from SammyK/bump-graph-to-2.7
SammyK Aug 6, 2016
8b036b4
Fix bug with including polyfills.php
SammyK Aug 9, 2016
364fe1d
Merge pull request #633 from SammyK/fix-polyfill-include
SammyK Aug 9, 2016
7ed1ecd
Bump patch version and update CHANGELOG
SammyK Aug 9, 2016
f017fe1
Updating composer.json
viv001 Aug 22, 2016
1bb4d6c
Update composer.json
viv001 Aug 22, 2016
ab068ef
Update README to feflect new package name
SammyK Aug 22, 2016
a5e46b2
FacebookRequest:setAccessToken(): accepts null as an argument
MacDada Aug 23, 2016
9e5b721
Update badges, links and Graph version
SammyK Aug 29, 2016
43edeaf
Update branch in badges
SammyK Aug 29, 2016
c635895
Fixed AccessToken::isLongLived documentation.
smatyas Oct 12, 2016
adb299f
Fix: Method does not return anything
localheinz Sep 7, 2016
9c5a1c7
Removed unnecessary space
phelipealves Sep 16, 2016
3cd1b92
add cover and picture type and methode
flod1 Sep 15, 2016
dfbd470
Bump Graph version to v2.8
SammyK Oct 12, 2016
c69c3c0
Bump version and update README and CHANGELOG
SammyK Oct 12, 2016
68a32a1
Refactor landing documenation page
SammyK Oct 14, 2016
0e30a5a
Remove Facebook link anchors
SammyK Oct 14, 2016
5885f26
Update relative paths
SammyK Oct 14, 2016
558a5e8
Remove version number from title in docs landing
SammyK Oct 15, 2016
f360ba3
Move and rename docs for better organization
SammyK Oct 15, 2016
f37841c
Update README link to repo docs
SammyK Oct 18, 2016
0e2a1ea
Update README link to repo docs
SammyK Oct 18, 2016
01b41da
Fix link in docs
SammyK Oct 18, 2016
1f75b86
fixed invalid format handling of headers[x-fb-ads-insights-throttle]
tituskeuler Oct 18, 2016
490a94b
Merge pull request #679 from tituskeuler/5.4
SammyK Oct 18, 2016
a5a6b6c
Version bump and update CHANGELOG
SammyK Oct 18, 2016
59d8bc4
Add support for PHP 7 CSPRNG and use as first check to keep deprecate…
SammyK Oct 31, 2016
f4c7c11
Suggest installing paragonie/random_compat
SammyK Oct 31, 2016
6865f1e
Merge pull request #692 from SammyK/csprng-check
SammyK Nov 15, 2016
2839246
Update CHANGELOG and bump version number
SammyK Nov 15, 2016
8561614
remove card tags
Oct 18, 2016
f96a5c0
remove FB header anchors
Oct 18, 2016
fed584b
convert code blocks
Oct 18, 2016
8da025b
convert quote blocks
Oct 18, 2016
acbbfca
convert table blocks
Oct 18, 2016
d599b09
update graph API version
Oct 18, 2016
3606f34
fix typos
Oct 18, 2016
5e5499e
update links
Oct 18, 2016
1dd44ba
fix typos
Oct 18, 2016
a6e4aa6
fix links
Oct 18, 2016
eb9a0d7
update links
Oct 18, 2016
da4fc45
fix camel case
Oct 18, 2016
8207e3f
fix links
Oct 18, 2016
792df43
update links
Oct 18, 2016
6897150
update links
Oct 18, 2016
fc9cfa1
add syntax highlighting
Oct 18, 2016
ad20f47
add syntax highlighting
Oct 18, 2016
97ed3ee
remove highlight for non php blocks
Oct 18, 2016
e4270f4
first round of changes from review
Oct 25, 2016
cb4a352
fix blockquotes
Oct 28, 2016
003fe14
Fix some links in the docs
teldosas Dec 2, 2016
52ef69a
Fix the exception message
vdyalex Dec 15, 2016
9ee5295
Fix reference link in docs
SammyK Dec 23, 2016
678151d
Fix link in docs
SammyK Dec 23, 2016
e243ba3
Remove reference to mbstring requirement in the docs
SammyK Dec 23, 2016
0f367aa
Update references to old repo and packagist names to the new ones
SammyK Dec 23, 2016
4c4817c
Remove minor version from link anchor
SammyK Dec 23, 2016
73b8b44
Add "Security Vulnerabilities" section to README
SammyK Dec 23, 2016
5de90f6
Add FacebookBatchRequest factory method
teldosas Dec 1, 2016
1355b82
Fix map implementation in GraphEdge class.
qpautrat Dec 29, 2016
739e435
Fix php doc block.
qpautrat Dec 29, 2016
34bf650
Improve test.
qpautrat Dec 29, 2016
eeab858
Add full batch support without breaking BC
teldosas Dec 1, 2016
27e959b
Add test for FacebookBatchRequest factory method
teldosas Dec 1, 2016
f9e7d99
Add tests for omit_response_on_success batch option
teldosas Dec 1, 2016
fe0728d
Merge pull request #715 from qpautrat/overwrite_graph_edge_map
yguedidi Dec 30, 2016
977e610
Update CHANGELOG
SammyK Dec 30, 2016
3e0f787
Update version number to 5.4.3
SammyK Dec 30, 2016
e728107
update copyright headers
freekmurze Jan 2, 2017
8de1795
Merge pull request #719 from freekmurze/5.4
SammyK Jan 3, 2017
996cb7c
Add MIME type for SRT files
SammyK Jan 19, 2017
2b10b6c
Merge pull request #734 from SammyK/add-mime-type-for-srt
SammyK Jan 19, 2017
5d0c486
Update CHANGELOG and version bump
SammyK Jan 19, 2017
db7cb87
Add docs for batch request factory method
teldosas Dec 30, 2016
177b2e9
Update docs of FacebookBatchRequest::add method
teldosas Dec 30, 2016
7f8685f
Add example for 'omit_response_on_success' option
teldosas Dec 30, 2016
16a6a0c
Add example for 'depends_on' option
teldosas Dec 30, 2016
4980f3a
Fix batch examples to comply with PSR2
teldosas Jan 12, 2017
44ba495
Update README.md
klausbreyer Mar 20, 2017
8b865d3
Merge pull request #758 from klausbreyer/5.4
yguedidi Mar 22, 2017
26bc142
Merge pull request #759 from MacDada/phpdoc_update
yguedidi Mar 22, 2017
dfeb533
Add PHP 7.1 to Travis build
Apr 14, 2017
a854eb0
Mark test as skipped from 7.1
Apr 14, 2017
d9b7427
Merge pull request #766 from emirb/patch-1
SammyK Apr 20, 2017
ecab68b
Merge pull request #713 from teldosas/full-batch-v5.4
SammyK Apr 20, 2017
c0e6d82
Update CHANGELOG
SammyK Apr 20, 2017
aaee490
Bump Graph API version to v2.9
SammyK Apr 20, 2017
bacd902
Update CHANGELOG
SammyK Apr 20, 2017
93d7dc8
Bump SDK version to 5.5.0
SammyK Apr 20, 2017
d1a4026
Update README.md
May 30, 2017
3769e96
Wrong method call documentation
Jun 27, 2017
ec57027
Merge pull request #802 from sergeychernyshev/method-docs-typo
yguedidi Jun 27, 2017
29e3b9e
Fix Travis build for 5.5
yguedidi Jun 30, 2017
33a49e5
Merge pull request #808 from facebook/fix-travis-55
yguedidi Jun 30, 2017
eb4b61b
Fix documentation #789
tolbon Jun 30, 2017
53f221e
Merge pull request #810 from tolbon/patch-1
yguedidi Jun 30, 2017
da23a30
Merge pull request #790 from theDanielK/patch-1
yguedidi Jul 4, 2017
7300943
getFanCount() method to GraphPage. (get pagelikes)
eddieace Jul 5, 2017
7c62b6a
Fix phpdoc
Jul 14, 2017
7af9f27
Merge pull request #825 from h4kuna/fix-php-doc
yguedidi Jul 15, 2017
ff0226e
default version bumped to 2.10 everywhere
Dylan-DPC Jul 23, 2017
5604bd1
Merge pull request #829 from Dylan-DPC/version-bump
SammyK Jul 23, 2017
ea41a59
Update changelog
SammyK Jul 23, 2017
34f5e59
Bump SDK version to 5.6.0
SammyK Jul 23, 2017
8d72743
add require autoload.php to example (fixes #842)
Aug 16, 2017
5255187
add __DIR__ to require path
Aug 16, 2017
4d9dd83
add __DIR__ to path properly (d'oh)
Aug 16, 2017
89c86a7
concat syntax
Aug 16, 2017
86de719
Merge pull request #843 from dojobo/5.5
SammyK Aug 16, 2017
f548114
add require autoload.php to example (fixes #842)
Aug 16, 2017
301bf1b
add __DIR__ to require path
Aug 16, 2017
2f762ce
add __DIR__ to path properly (d'oh)
Aug 16, 2017
c84a013
concat syntax
Aug 16, 2017
cee7c30
Fix phpdoc @return instead of @returns
gnat42 Aug 16, 2017
4aab054
Merge pull request #844 from gnat42/patch-1
SammyK Aug 16, 2017
a13d1fb
Fix phpdoc @return instead of @returns
gnat42 Aug 16, 2017
2f9639c
Update changelog and version bump
SammyK Aug 16, 2017
d811ada
Add "new" API Throttle code
tolbon Nov 7, 2017
15ec3c5
Fix PHPDoc return type #857
julienbornstein Nov 21, 2017
5568c74
Add link to COC from `CONTRIBUTING.md`
flarnie Nov 27, 2017
e74a871
Add `CODE_OF_CONDUCT.md`
flarnie Nov 27, 2017
db6532c
Merge pull request #887 from flarnie/5.x
yguedidi Dec 3, 2017
adbfced
Merge pull request #885 from julienbornstein/5.x
yguedidi Dec 3, 2017
e1f1eba
Enabling the follow location option for cURL
ryanml Dec 3, 2017
db24fc2
Updating FacebookCurkHttpClientTest for cURL location following
ryanml Dec 3, 2017
9b4cc4c
Update pull request link
yguedidi Dec 3, 2017
38825e1
Add maintainance instructions
yguedidi Dec 3, 2017
300f9c8
Removing follow location
ryanml Dec 3, 2017
3b7da9e
Merge pull request #891 from ryanml/curl-follow-fix
yguedidi Dec 4, 2017
b5ec180
delete empty line
tolbon Dec 4, 2017
5f3f909
Merge pull request #881 from tolbon/patch-3
yguedidi Dec 4, 2017
61a19c3
Merge pull request #892 from yguedidi/update_contributing
yguedidi Dec 4, 2017
6eb970d
Merge branch '5.5' into 5.x
yguedidi Dec 6, 2017
6a8580e
Correctly return an AccessToken instance
martinstuecklschwaiger Jan 9, 2018
2762670
Specify correct behavior in test
martinstuecklschwaiger Jan 9, 2018
b4c3f7c
Remove 'code' param
martinstuecklschwaiger Jan 9, 2018
53a3d05
Remove stupid code
martinstuecklschwaiger Jan 9, 2018
56d4c3f
Remove newline
martinstuecklschwaiger Feb 8, 2018
a335ed8
Use const for URL parts
martinstuecklschwaiger Feb 8, 2018
91b15a1
Use constants also for expected value
martinstuecklschwaiger Feb 8, 2018
711fe77
Simplify line
martinstuecklschwaiger Feb 8, 2018
e278500
Merge pull request #913 from martinstuecklschwaiger/5.x
yguedidi Feb 14, 2018
090ffe5
Prepare 5.6.2 release
yguedidi Feb 14, 2018
030f8c5
Merge pull request #942 from yguedidi/prepare_5_6_2
yguedidi Feb 14, 2018
f85ffc2
Add 'joined' field to cast in DateTime
tolbon Feb 21, 2018
7542d5f
Trailing whitespaces
carusogabriel Jan 7, 2018
72df666
Clean extra lines
carusogabriel Jan 7, 2018
6d1eb5a
Merge pull request #912 from carusogabriel/docs
yguedidi Feb 25, 2018
e49dd1e
Merge branch '5.x' into 5.5
eddieace May 18, 2018
4a1c99f
Refactor out creepy test data
SammyK Jul 3, 2018
06a5546
Fix countable error in PHP 7.2; thanks to @andreybolonin in #969
SammyK Jul 3, 2018
62ba2c9
Merge branch '5.x' into patch-1
SammyK Jul 3, 2018
90e92bd
Update changelog and bump version
SammyK Jul 3, 2018
2aa51a3
Merge branch 'patch-1' of https://github.com/tolbon/php-graph-sdk int…
SammyK Jul 3, 2018
7273c7e
Merge branch 'tolbon-patch-1' into 5.x
SammyK Jul 6, 2018
753aa77
Update CHANGELOG with #950 change
SammyK Jul 6, 2018
80328ae
Bump version for next tag release
SammyK Jul 6, 2018
76adc2b
Merge branch '5.5' of https://github.com/eddieace/php-graph-sdk into …
SammyK Jul 6, 2018
65065d2
Merge branch 'eddieace-5.5' into 5.x
SammyK Jul 6, 2018
e0a5fe1
Update CHANGELOG for #815 change
SammyK Jul 6, 2018
3138249
Revert "Bump version for next tag release"; Sorry, got a little excited
SammyK Jul 6, 2018
18ea305
Update .travis.yml
andreybolonin Oct 27, 2018
674b2b5
Merge pull request #1073 from andreybolonin/patch-2
yguedidi Nov 12, 2018
60847fd
Fix #1076
bytestream Nov 8, 2018
2392804
Merge pull request #1079 from bytestream/5.6
yguedidi Nov 15, 2018
dd8f1a7
Fix resumable upload error "There was a problem uploading your video.…
phaizullin Jun 1, 2018
179eec3
Added offset fields to FacebookResumableUploadException. Added test f…
phaizullin Jul 3, 2018
b4ee993
Update CHANGELOG for #1001 and fixed review
phaizullin Nov 20, 2018
4f1c91f
Merge pull request #1001 from phaizullin/5.x
yguedidi Nov 21, 2018
5f4a062
Strip 'enforce_https' param
yguedidi Nov 14, 2018
2d0b785
Merge pull request #1084 from yguedidi/enforce_https
yguedidi Nov 21, 2018
a7d9703
Conserve data on same level as data array
jonny-no1 Nov 23, 2018
0174934
Update change log
jonny-no1 Nov 23, 2018
a20d03b
Merge pull request #1034 from foaly-nr1/id
yguedidi Nov 23, 2018
2d82506
Prepare 5.7.0 release
yguedidi Dec 11, 2018
b06ee43
dad4
traceealayne Oct 20, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Path-based git attributes
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html

# Ignore all test and documentation with "export-ignore".
.gitattributes export-ignore
.gitignore export-ignore
.scrutinizer.yml export-ignore
.travis.yml export-ignore
CHANGELOG.md export-ignore
CONTRIBUTING.md export-ignore
docs export-ignore
phpunit.xml.dist export-ignore
README.md export-ignore
tests export-ignore
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
vendor/
composer.lock
composer.phar
.DS_Store
.idea/
tests/FacebookTestCredentials.php

9 changes: 9 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
filter:
paths:
- 'src/*'
- 'tests/*'

tools:
php_code_sniffer:
config:
standard: PSR2
32 changes: 32 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3

sudo: false

cache:
directories:
- $HOME/.composer/cache

matrix:
include:
- php: hhvm
dist: trusty

before_install:
- travis_retry composer self-update

install:
- travis_retry composer require --dev --no-update squizlabs/php_codesniffer
- travis_retry composer install --prefer-dist --no-interaction

script:
- vendor/bin/phpcs
- vendor/bin/phpunit --coverage-text --exclude-group integration
202 changes: 202 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
# CHANGELOG

Starting with version 5, the Facebook PHP SDK follows [SemVer](http://semver.org/).

## 5.x

Version 5 of the Facebook PHP SDK is a complete refactor of version 4. It comes loaded with lots of new features and a friendlier API.

- 5.7.1 (2018-XX-XX)
- 5.7.0 (2018-12-12)
- Add `joined` to list of fields to be cast to `\DateTime` (#950)
- Add `GraphPage::getFanCount()` to get the number of people who like the page (#815)
- Fixed HTTP/2 support (#1079)
- Fixed resumable upload error (#1001)
- Strip 'enforce_https' param (#1084)
- Conserve id when next to data key, resolves #700 (#1034)
- 5.6.3 (2018-07-01)
- Add fix for countable error in PHP 7.2 (originally #969 by @andreybolonin)
- 5.6.2 (2018-02-15)
- Strip 'code' param (#913)
- 5.6.1 (2017-08-16)
- Fixed doc block syntax that interfered with Doctrine (#844)
- 5.6.0 (2017-07-23)
- Bump Graph API version to v2.10 (#829)
- 5.5.0 (2017-04-20)
- Added support for batch options (#713)
- Bump Graph API version to v2.9.
- 5.4.4 (2017-01-19)
- Added the `application/octet-stream` MIME type for SRT files (#734)
- 5.4.3 (2016-12-30)
- Fixed a bug that would throw a type error in `GraphEdge` in some cases (#715)
- 5.4.2 (2016-11-15)
- Added check for [PHP 7 CSPRNG](http://php.net/manual/en/function.random-bytes.php) first to keep mcrypt deprecation messages from appearing in PHP 7.1 (#692)
- 5.4.1 (2016-10-18)
- Fixed a bug that was not properly parsing response headers when they contained the colon `:` character. (#679)
- 5.4.0 (2016-10-12)
- Bump Graph API version to v2.8.
- Auto-cast `cover` field to `GraphCoverPhoto` and `picture` field to `GraphPicture` in `GraphPage`. (#655)
- Added `getCover()` and `getPicture()` to `GraphPage`. (#655)
- 5.3.1
- Fixed a bug where the `polyfills.php` file wasn't being included properly when using the built-in auto loader (#633)
- 5.3.0
- Bump Graph API version to v2.7.
- 5.2.1
- Fix notice that is raised in `FacebookUrlDetectionHandler` (#626)
- Fix bug in `FacebookRedirectLoginHelper::getLoginUrl()` where the CSRF token gets overwritten in certain scenarios (#613)
- Fix bug with polyfills not getting loaded when installing the Facebook PHP SDK manually (#599)
- 5.2.0
- Added new Birthday class to handle Graph API response variations
- Bumped Graph version to v2.6
- Added better error checking for app IDs that are cast as int when they are greater than PHP_INT_MAX
- 5.1.5
- Removed mbstring extension dependency
- Updated required PHP version syntax in composer.json
- 5.1.4
- Breaking changes
- Changes the serialization method of FacebookApp
- FacebookApps serialized by versions prior 5.1.4 cannot be unserialized by this version
- Fixed redirect_uri injection vulnerability
- 5.0 (2015-07-09)
- New features
- Added the `Facebook\Facebook` super service for an easier API
- Improved "reauthentication" and "rerequest" support
- Requests/Responses
- Added full batch support
- Added full file upload support for videos & photos
- Added methods to make pagination easier
- Added "deep" pagination support so that Graph edges embedded in a Graph node can be paginated over easily
- Beta support at `graph.beta.facebook.com`
- Added `getMetaData()` to `GraphEdge` to obtain all the metadata associated with a list of Graph nodes
- Full nested param support
- Many improvements to the Graph node subtypes
- New injectable interfaces
- Added a `PersistentDataInterface` for custom persistent data handling
- Added a `PseudoRandomStringGeneratorInterface` for customizable CSPRNG's
- Added a `UrlDetectionInterface` for custom URL-detection logic
- Codebase changes
- Moved exception classes to `Exception\*` directory
- Moved response collection objects to `GraphNodes\*` directory
- Moved helpers to `Helpers\*` directory
- Killed `FacebookSession` in favor of the `AccessToken` entity
- Added `FacebookClient` service
- Renamed `FacebookRequestException` to `FacebookResponseException`
- Renamed `FacebookHttpable` to `FacebookHttpClientInterface`
- Added `FacebookApp` entity that contains info about the Facebook app
- Updated the API for the helpers
- Added `HttpClients`, `PersistentData` and `PseudoRandomString` factories to reduce main class' complexity
- Tests
- Added namespaces to the tests
- Grouped functional tests under `functional` group
- Other changes
- Made PSR-2 compliant
- Adopted SemVer
- Completely refactored request/response handling
- Refactored the OAuth 2.0 logic
- Added `ext-mbstring` to composer require
- Added this CHANGELOG. Hi! :)

## 4.1-dev

Since the Facebook PHP SDK didn't follow SemVer in version 4.x, the master branch was going to be released as 4.1. However, the SDK switched to SemVer in v5.0. So any references on the internet to version 4.1 can be assumed to be an alias to version `5.0.0`

## 4.0.x

Version 4.0 of the Facebook PHP SDK did not follow [SemVer](http://semver.org/). The versioning format used was as follows: `4.MAJOR.(MINOR|PATCH)`. The `MINOR` and `PATCH` versions were squashed together.

- 4.0.23 (2015-04-03)
- Added support for new JSON response types in Graph v2.3 when requesting access tokens
- 4.0.22 (2015-04-02)
- Fixed issues related to multidimensional params
- **Bumped default fallback Graph version to `v2.3`**
- 4.0.21 (2015-03-31)
- Added a `FacebookPermissions` class to reference all the Facebook permissions
- 4.0.20 (2015-03-02)
- Fixed a bug introduced in `4.0.19` related to CSRF comparisons
- 4.0.19 (2015-03-02)
- Added stricter CSRF comparison checks to `SignedRequest` and `FacebookRedirectLoginHelper`
- 4.0.18 (2015-02-24)
- [`FacebookHttpable`] Reverted a breaking change from `4.0.17` that changed the method signatures
- 4.0.17 (2015-02-19)
- [`FacebookRedirectLoginHelper`] Added multiple auth types to `getLoginUrl()`
- [`GraphUser`] Added `getTimezone()`
- [`FacebookCurl`] Additional fix for `curl_init()` handling
- Added support for https://graph-video.facebook.com when path ends with `/videos`
- 4.0.16 (2015-02-03)
- [`FacebookRedirectLoginHelper`] Added "reauthenticate" functionality to `getLoginUrl()`
- [`FacebookCurl`] Fixed `curl_init()` issue
- 4.0.15 (2015-01-06)
- [`FacebookRedirectLoginHelper`] Added guard against accidental exposure of app secret via the logout link
- 4.0.14 (2014-12-29)
- [`GraphUser`] Added `getGender()`
- [`FacebookRedirectLoginHelper`] Added CSRF protection for rerequest links
- [`GraphAlbum`] Fixed bugs in getter methods
- 4.0.13 (2014-12-12)
- [`FacebookRedirectLoginHelper`] Added `$displayAsPopup` param to `getLoginUrl()`
- [`FacebookResponse`] Fixed minor pagination bug
- Removed massive cert bundle and replaced with `DigiCertHighAssuranceEVRootCA` for peer verification
- 4.0.12 (2014-10-30)
- **Updated default fallback Graph version to `v2.2`**
- Fixed potential duplicate `type` param in URL's
- [`FacebookRedirectLoginHelper`] Added `getReRequestUrl()`
- [`GraphUser`] Added `getEmail()`
- 4.0.11 (2014-08-25)
- [`FacebookCurlHttpClient`] Added a method to disable IPv6 resolution
- 4.0.10 (2014-08-12)
- [`GraphObject`] Fixed improper usage of `stdClass`
- Fixed warnings when `open_basedir` directive set
- Fixed long lived sessions forgetting the signed request
- [`CanvasLoginHelper`] Removed GET processing
- Updated visibility on `FacebookSession::useAppSecretProof`
- 4.0.9 (2014-06-27)
- [`FacebookPageTabHelper`] Added ability to fetch `app_data`
- Added `GraphUserPage` Graph node collection
- Cleaned up test files
- Decoupled signed request handling
- Added some stronger type hinting
- Explicitly added separator in `http_build_query()`
- [`FacebookCurlHttpClient`] Updated the calculation of the request body size
- Decoupled access token handling
- [`FacebookRedirectLoginHelper`] Implemented better CSPRNG
- Added autoloader for those poor non-composer peeps
- 4.0.8 (2014-06-10)
- Enabled `appsecret_proof` by default
- Added stream wrapper and Guzzle HTTP client implementations
- 4.0.7 (2014-05-31)
- Improved testing environment
- Added `FacebookPageTabHelper`
- [`FacebookSession`] Fixed issue where `validateSessionInfo()` would return incorrect results
- 4.0.6 (2014-05-24)
- Added feature to inject custom HTTP clients
- [`FacebookCanvasLoginHelper`] Fixed bug that would throw when logging out
- Removed appToken from test credentials file
- [`FacebookRequest`] Added `appsecret_proof` handling
- 4.0.5 (2014-05-19)
- Fixed bug in cURL where proxy headers are not included in header_size
- Added internal SDK error codes for thrown exceptions
- Added stream wrapper fallback for hosting environments without cURL
- Added getter methods for signed requests
- Fixed warning that showed up in tests
- Changed SDK error code for stream failure
- Added `GraphAlbum` Graph node collection
- 4.0.4 (2014-05-15)
- Added more error codes to accommodate more Graph error responses
- [`JavaScriptLoginHelper`] Fixed bug that would try to get a new access token when one already existed
- 4.0.3 (2014-05-14)
- Fixed bug for "Missing client_id parameter" error
- Fixed bug for eTag support when "Network is unreachable" error occurs
- Fixed pagination issue related to `sdtClass`
- 4.0.2 (2014-05-07)
- [`composer.json`] Upgraded to use PSR-4 autoloading instead of Composer's `classmap`
- [`FacebookCanvasLoginHelper`] Abstracted access to super globals
- [`FacebookRequest`] Fixed bug that blindly appended params to a url
- [`FacebookRequest`] Added support for `DELETE` and `PUT` methods
- Added eTag support to Graph requests
- 4.0.1 (2014-05-05)
- All exceptions are now extend from `FacebookSDKException`
- [`FacebookSession`] Signed request parsing will throw on malformed signed request input
- Excluded test credentials from tests
- [`FacebookRedirectLoginHelper`] Changed scope on `$state` property
- [`phpunit.xml`] Normalized
- 4.0.0 (2014-04-30)
- Initial release. Yay!
3 changes: 3 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Code of Conduct

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please [read the full text](https://code.facebook.com/codeofconduct) so that you can understand what actions will and will not be tolerated.
61 changes: 54 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,60 @@
Contributing
------------

For us to accept contributions you will have to first have signed the
[Contributor License Agreement](https://developers.facebook.com/opensource/cla).
Contributions are **welcome** and will be fully **credited**.

When committing, keep all lines to less than 80 characters, and try to
follow the existing style.
We accept contributions via Pull Requests on [Github](https://github.com/facebook/php-graph-sdk/pull/new).

Before creating a pull request, squash your commits into a single commit.
The current stable major version is v5. The v6 is under active development.

Add the comments where needed, and provide ample explanation in the
commit message.
This means any new feature MUST target v6 (`master` branch).

The v5 (`5.x` branch) is maintained only for bug fixes, node/edge updates or documentation improvements.

## Code of Conduct
The code of conduct is described in [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md)

## Pull Requests

- **Sign the CLA** - For us to accept contributions you will have to first have signed the
[Contributor License Agreement](https://developers.facebook.com/opensource/cla).

- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to run [PHP Code Sniffer](#running-php-code-sniffer) as you code.

- **Add tests!** - Your patch won't be accepted if it doesn't have tests.

- **Document any change in behaviour** - Make sure the README and the [documentation](https://github.com/facebook/php-graph-sdk/tree/master/docs) are kept up-to-date.

- **Consider our release cycle** - As of version 5.0.0, we try to follow [SemVer](http://semver.org/). Randomly breaking public APIs is not an option.

- **Create topic branches** - Don't ask us to pull from your master branch.

- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.

- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting.

- **Ensure tests pass!** - Please [run the tests](#running-tests) before submitting your pull request, and make sure they pass. We won't accept a patch until all tests pass.

- **Ensure no coding standards violations** - Please [run PHP Code Sniffer](#running-php-code-sniffer) using the PSR-2 standard before submitting your pull request. A violation will cause the build to fail, so please make sure there are no violations. We can't accept a patch if the build fails.

## Running Tests

``` bash
$ ./vendor/bin/phpunit
```

## Running PHP Code Sniffer

You can install [PHP Code Sniffer](https://github.com/squizlabs/PHP_CodeSniffer) globally with composer.

``` bash
$ composer global require squizlabs/php_codesniffer
```

Then you can `cd` into the Facebook PHP SDK folder and run Code Sniffer against the `src/` directory.

``` bash
$ ~/.composer/vendor/bin/phpcs
```

**Happy coding**!
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2014 Facebook, Inc.
Copyright 2017 Facebook, Inc.

You are hereby granted a non-exclusive, worldwide, royalty-free license to
use, copy, modify, and distribute this software in source code or binary
Expand Down
Loading