Autoload.php
8 years ago
TestEmbera.php
8 years ago
TestFakeResponse.php
8 years ago
TestFormatter.php
8 years ago
TestHtmlProcessor.php
8 years ago
TestHttpRequest.php
8 years ago
TestOembed.php
8 years ago
TestProviders.php
8 years ago
TestServiceAmCharts.php
8 years ago
TestServiceAnimatron.php
8 years ago
TestServiceAnimoto.php
8 years ago
TestServiceAolOn.php
8 years ago
TestServiceAppNet.php
8 years ago
TestServiceAudioSnaps.php
8 years ago
TestServiceBambuser.php
8 years ago
TestServiceBlipTv.php
8 years ago
TestServiceCacoo.php
8 years ago
TestServiceChartblocks.php
8 years ago
TestServiceChirbit.php
8 years ago
TestServiceCircuitLab.php
8 years ago
TestServiceClipland.php
8 years ago
TestServiceClyp.php
8 years ago
TestServiceCodepoints.php
8 years ago
TestServiceCollegeHumor.php
8 years ago
TestServiceCoub.php
8 years ago
TestServiceCrowdRanking.php
8 years ago
TestServiceDailyMile.php
8 years ago
TestServiceDailyMotion.php
8 years ago
TestServiceDeviantart.php
8 years ago
TestServiceDidacte.php
8 years ago
TestServiceDipity.php
8 years ago
TestServiceDotSub.php
8 years ago
TestServiceEdocr.php
8 years ago
TestServiceEgliseInfo.php
8 years ago
TestServiceFacebook.php
8 years ago
TestServiceFlickr.php
8 years ago
TestServiceFunnyOrDie.php
8 years ago
TestServiceGeographCI.php
8 years ago
TestServiceGeographDe.php
8 years ago
TestServiceGeographUk.php
8 years ago
TestServiceGettyImages.php
8 years ago
TestServiceGfycat.php
8 years ago
TestServiceGithubGist.php
8 years ago
TestServiceGmep.php
8 years ago
TestServiceHq23.php
8 years ago
TestServiceHuffduffer.php
8 years ago
TestServiceHulu.php
8 years ago
TestServiceIFTTT.php
8 years ago
TestServiceIFixIt.php
8 years ago
TestServiceInfogram.php
8 years ago
TestServiceInstagram.php
8 years ago
TestServiceIssuu.php
8 years ago
TestServiceIssuuFakeResponse.php
8 years ago
TestServiceKickstarter.php
8 years ago
TestServiceLearningApps.php
8 years ago
TestServiceMeetup.php
8 years ago
TestServiceMixCloud.php
8 years ago
TestServiceMobyPicture.php
8 years ago
TestServiceNFB.php
8 years ago
TestServiceOfficeMix.php
8 years ago
TestServiceOfficialFM.php
8 years ago
TestServiceOumy.php
8 years ago
TestServicePastery.php
8 years ago
TestServicePollDaddy.php
8 years ago
TestServicePollEverywhere.php
8 years ago
TestServicePortfolium.php
8 years ago
TestServiceRapidengage.php
8 years ago
TestServiceRdio.php
8 years ago
TestServiceReleaseWire.php
8 years ago
TestServiceRepubHub.php
8 years ago
TestServiceReverbnation.php
8 years ago
TestServiceRevision3.php
8 years ago
TestServiceRoomshare.php
8 years ago
TestServiceRutube.php
8 years ago
TestServiceSapo.php
8 years ago
TestServiceScreenr.php
8 years ago
TestServiceScribd.php
8 years ago
TestServiceShortNote.php
8 years ago
TestServiceShoudio.php
8 years ago
TestServiceShowTheWay.php
8 years ago
TestServiceSilk.php
8 years ago
TestServiceSketchfab.php
8 years ago
TestServiceSlideshare.php
8 years ago
TestServiceSoundCloud.php
8 years ago
TestServiceSpeakerDeck.php
8 years ago
TestServiceSpotify.php
8 years ago
TestServiceStreamOneCloud.php
8 years ago
TestServiceStreamable.php
8 years ago
TestServiceSway.php
8 years ago
TestServiceTed.php
8 years ago
TestServiceTheySaidSo.php
8 years ago
TestServiceTwitter.php
8 years ago
TestServiceUstream.php
8 years ago
TestServiceVerse.php
8 years ago
TestServiceVevo.php
8 years ago
TestServiceViddler.php
8 years ago
TestServiceVideoFork.php
8 years ago
TestServiceVideoJug.php
8 years ago
TestServiceVimeo.php
8 years ago
TestServiceVine.php
8 years ago
TestServiceWordpressTV.php
8 years ago
TestServiceYFrog.php
8 years ago
TestServiceYandex.php
8 years ago
TestServiceYoutube.php
8 years ago
TestUrl.php
8 years ago
TestServiceFacebook.php
55 lines
| 1 | <?php |
| 2 | /** |
| 3 | * TestServiceFacebook.php |
| 4 | * |
| 5 | * @package Tests |
| 6 | * @author Michael Pratt <pratt@hablarmierda.net> |
| 7 | * @link http://www.michael-pratt.com/ |
| 8 | * |
| 9 | * For the full copyright and license information, please view the LICENSE |
| 10 | * file that was distributed with this source code. |
| 11 | */ |
| 12 | |
| 13 | require_once 'TestProviders.php'; |
| 14 | |
| 15 | class TestServiceFacebook extends TestProviders |
| 16 | { |
| 17 | protected $urls = array( |
| 18 | 'valid' => array( |
| 19 | /** |
| 20 | * FIXME: |
| 21 | * Could not find valid public urls with the following formats: |
| 22 | * - https://www.facebook.com/questions/{question-id} |
| 23 | * - https://www.facebook.com/{username}/activity/{activity-id} |
| 24 | * - https://www.facebook.com/video.php?id={video-id} |
| 25 | * - https://www.facebook.com/photos/{photo-id} |
| 26 | * |
| 27 | * I found examples for this type of urls, but it seems that is not supported |
| 28 | * and since we know Facebook sucks at mantaining API's, is not a surprise |
| 29 | * - https://www.facebook.com/media/set?set={set-id} |
| 30 | * https://facebook.com/media/set/?set=a.396848117509.174735.184651592509 |
| 31 | * https://www.facebook.com/media/set/?set=a.334300020471.345441.296274160471&type=3 |
| 32 | */ |
| 33 | 'https://www.facebook.com/nopegida/posts/1117276211625055', |
| 34 | 'https://www.facebook.com/nopegida/posts/1117045234981486/', |
| 35 | 'https://www.facebook.com/notes/nopegida/netiquette/920088871343791', |
| 36 | 'https://facebook.com/coca-cola/photos/a.99394368305.88399.40796308305/10154703575238306/?type=3', |
| 37 | 'https://www.facebook.com/photo.php?fbid=10151025976302510&set=a.10150992587227510.445966.184651592509&type=1&relevant_count=1', |
| 38 | 'http://www.facebook.com/permalink.php?story_fbid=660811664028467&id=282562525186718', |
| 39 | 'https://www.facebook.com/4jonnhart/videos/838982552851199/', |
| 40 | 'https://www.facebook.com/video.php?v=10153482090911661', |
| 41 | ), |
| 42 | 'invalid' => array( |
| 43 | 'https://www.facebook.com/', |
| 44 | 'https://facebook.com/docs/plugins/oembed-endpoints', |
| 45 | 'https://www.facebook.com/about/privacy', |
| 46 | 'https://www.facebook.com/login.php', |
| 47 | 'https://www.facebook.com/lite/', |
| 48 | 'https://www.facebook.com/nopegida/', |
| 49 | 'https://www.facebook.com/photo.php?bad_order=1&fbid=10151025976302510&set=a.10150992587227510.445966.184651592509', |
| 50 | ), |
| 51 | ); |
| 52 | |
| 53 | public function testProvider() { $this->validateProvider('Facebook'); } |
| 54 | } |
| 55 |