Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
angular-facebook-api-factory
Advanced tools
angularjs factory for facebook json rest api requests
angular-facebook-api-factory is an angularjs module with a facebook api factory.
Author: Jonathan Hornung (JohnnyTheTank)
bower install --save angular-facebook-api-factory
npm install --save angular-facebook-api-factory
jtt_facebook
to your application's module dependencies.<script src="bower_components/angular-facebook-api-factory/src/angular-facebook-api-factory.min.js"></script>
<script src="node_modules/angular-facebook-api-factory/src/angular-facebook-api-factory.min.js"></script>
<script src="angular-facebook-api-factory.min.js"></script>
facebookFactory
facebookFactory.getPostsFromPageById({
pageId:"<PAGE_ID>",
limit:"<LIMIT>", // (optional) valid values: 0-100 | default: 25
until:"<UNTIL>", // (optional)
since:"<SINCE>", // (optional)
__previous:"<PREVIOUS>", // (optional)
__paging_token:"<PAGING_TOKEN>", // (optional)
access_token:"<ACCESS_TOKEN>"
}).then(function (_data) {
//on success
}).catch(function (_data) {
//on error
});
facebookFactory.getPhotosFromPageById({
page:"<PAGE>", // ID or name
limit:"<LIMIT>", // (optional) valid values: 0-100 | default: 25
before:"<BEFORE>", // (optional)
after:"<AFTER>", // (optional)
access_token:"<ACCESS_TOKEN>"
}).then(function (_data) {
//on success
}).catch(function (_data) {
//on error
});
facebookFactory.getVideosFromPageById({
pageId:"<PAGE_ID>",
limit:"<LIMIT>", // (optional) valid values: 0-100 | default: 25
before:"<BEFORE>", // (optional)
after:"<AFTER>", // (optional)
access_token:"<ACCESS_TOKEN>"
}).then(function (_data) {
//on success
}).catch(function (_data) {
//on error
});
facebookFactory.getEventsFromPageById({
pageId:"<PAGE_ID>",
limit:"<LIMIT>", // (optional) valid values: 0-100 | default: 25
before:"<BEFORE>", // (optional)
after:"<AFTER>", // (optional)
access_token:"<ACCESS_TOKEN>"
}).then(function (_data) {
//on success
}).catch(function (_data) {
//on error
});
facebookFactory.getPageById({
pageId:"<PAGE_ID>",
access_token:"<ACCESS_TOKEN>"
}).then(function (_data) {
//on success
}).catch(function (_data) {
//on error
});
MIT
FAQs
angularjs factory for facebook json rest api requests
We found that angular-facebook-api-factory demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.