{"_id":"@achchiraj/facebook-api","_rev":"10-5ac2744882d8b3b7e91136a71f98386b","name":"@achchiraj/facebook-api","dist-tags":{"latest":"1.0.10"},"versions":{"1.0.0":{"name":"@achchiraj/facebook-api","version":"1.0.0","author":{"name":"youssef_achchiraj"},"license":"ISC","_id":"@achchiraj/facebook-api@1.0.0","maintainers":[{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"}],"homepage":"https://github.com/YoussefACHCHIRAJ/facebook-api#readme","bugs":{"url":"https://github.com/YoussefACHCHIRAJ/facebook-api/issues"},"dist":{"shasum":"c9c5830cc81daef841d468831545b4c4f75e465d","tarball":"https://registry.npmjs.org/@achchiraj/facebook-api/-/facebook-api-1.0.0.tgz","fileCount":6,"integrity":"sha512-DnTce+fQX+8EhFJmsqrzB36PMas8LtXbBUQ2RotTMOHdROhIggXIJcRQqSeZg/tFPVeQhtLLg7NwGxPgzNPmfg==","signatures":[{"sig":"MEUCIQCPZyERUpHVCoCqnG/+L+IYMvWL62xjT94L2TilJnEPywIgasKcCAU8S3pF+zMukIxF972vnMdDD7oQ4iQfefH9d1E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20698},"main":"dist/index.js","gitHead":"09fa305e129f426d8c46ea78db75c8dbe01a1519","scripts":{"dev":"nodemon src/index.ts","build":"npx tsc","start":"node dist/index.js"},"_npmUser":{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"},"repository":{"url":"git+https://github.com/YoussefACHCHIRAJ/facebook-api.git","type":"git"},"_npmVersion":"10.2.4","description":"simplify the interaction with facebook api graph","directories":{},"_nodeVersion":"20.11.0","dependencies":{"axios":"^1.7.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5","@types/node":"^20.14.2"},"_npmOperationalInternal":{"tmp":"tmp/facebook-api_1.0.0_1717889036526_0.15876203048904358","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@achchiraj/facebook-api","version":"1.0.1","author":{"name":"youssef_achchiraj"},"license":"ISC","_id":"@achchiraj/facebook-api@1.0.1","maintainers":[{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"}],"homepage":"https://github.com/YoussefACHCHIRAJ/facebook-api#readme","bugs":{"url":"https://github.com/YoussefACHCHIRAJ/facebook-api/issues"},"dist":{"shasum":"f56dde391fc468c712a8770844452a9de8f564f2","tarball":"https://registry.npmjs.org/@achchiraj/facebook-api/-/facebook-api-1.0.1.tgz","fileCount":6,"integrity":"sha512-gMYX37hakNb1eZzyPD7ATT7JCp0TTa74RBFI/J3cYGQnd4BJpmLoNad9Q/9I9L9NXmCGmpTSt3nIHYkqLRz9AA==","signatures":[{"sig":"MEUCICj8BZ3qmHwS67kQi2IXDUSUkFWp4GPq0F6aLySIKR9uAiEAu3nY4AbRfldAxwIoouMw03xRUts1DLwEhgCtFRNAb6w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20479},"main":"dist/index.js","gitHead":"ec5404ea7a7b1b0a518dd5f41194073beb9613ce","scripts":{"dev":"nodemon src/index.ts","build":"npx tsc","start":"node dist/index.js"},"_npmUser":{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"},"repository":{"url":"git+https://github.com/YoussefACHCHIRAJ/facebook-api.git","type":"git"},"_npmVersion":"10.2.4","description":"simplify the interaction with facebook api graph","directories":{},"_nodeVersion":"20.11.0","dependencies":{"axios":"^1.7.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5","@types/node":"^20.14.2"},"_npmOperationalInternal":{"tmp":"tmp/facebook-api_1.0.1_1717889424534_0.9932705961535495","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@achchiraj/facebook-api","version":"1.0.2","author":{"name":"youssef_achchiraj"},"license":"ISC","_id":"@achchiraj/facebook-api@1.0.2","maintainers":[{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"}],"homepage":"https://github.com/YoussefACHCHIRAJ/facebook-api#readme","bugs":{"url":"https://github.com/YoussefACHCHIRAJ/facebook-api/issues"},"dist":{"shasum":"0a0cdc12c28c57f6f0c8dbed35c21b5cdb395fa1","tarball":"https://registry.npmjs.org/@achchiraj/facebook-api/-/facebook-api-1.0.2.tgz","fileCount":6,"integrity":"sha512-TC2B6MMggwK7jLI1XSx1GWxE1Z1jaH81DvS5Z/bmtKp+YKrKcy+7+oMcDRBV7nDG40w9bpTjgaOn9WyuwjRW+g==","signatures":[{"sig":"MEUCIQDiv6SG3WBrSKJqHsx79z6VsBwn+xkG8vzGCAF9tDQPBwIgVEsIws/LfTlt0wYlIFMj6It9sTyPmZWOtMPgzpIHYL8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20208},"main":"dist/index.js","gitHead":"e00250569759b0e2a866d532a229d11470bde81d","scripts":{"dev":"nodemon src/index.ts","build":"npx tsc","start":"node dist/index.js"},"_npmUser":{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"},"repository":{"url":"git+https://github.com/YoussefACHCHIRAJ/facebook-api.git","type":"git"},"_npmVersion":"10.2.4","description":"simplify the interaction with facebook api graph","directories":{},"_nodeVersion":"20.11.0","dependencies":{"axios":"^1.7.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5","@types/node":"^20.14.2"},"_npmOperationalInternal":{"tmp":"tmp/facebook-api_1.0.2_1718015876481_0.5867218430715677","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@achchiraj/facebook-api","version":"1.0.3","author":{"name":"youssef_achchiraj"},"license":"ISC","_id":"@achchiraj/facebook-api@1.0.3","maintainers":[{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"}],"homepage":"https://github.com/YoussefACHCHIRAJ/facebook-api#readme","bugs":{"url":"https://github.com/YoussefACHCHIRAJ/facebook-api/issues"},"dist":{"shasum":"d517740ee4ec7b331f884c79d6d3cf5938bf3656","tarball":"https://registry.npmjs.org/@achchiraj/facebook-api/-/facebook-api-1.0.3.tgz","fileCount":11,"integrity":"sha512-SBA+7Zif0cL2DZ7wzcVjguGj70tJkNNu82splRYKoV9bPYlRSWQ2J4UDvyVN6XMZrPZA0bYWVDKe0KkqP7lazg==","signatures":[{"sig":"MEQCIAmuDhC/JkC6FrYNpfpbltGKqnIDJ2yf0M0jZeJ2iomVAiAa90QXypqA5zf6kWZ55Od04QR8L3yEVRqNFvDNnLcdNA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35956},"main":"dist/index.js","gitHead":"e00250569759b0e2a866d532a229d11470bde81d","scripts":{"dev":"nodemon src/index.ts","test":"jest","build":"npx tsc","start":"node dist/index.js"},"_npmUser":{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"},"repository":{"url":"git+https://github.com/YoussefACHCHIRAJ/facebook-api.git","type":"git"},"_npmVersion":"10.2.4","description":"simplify the interaction with facebook api graph","directories":{},"_nodeVersion":"20.11.0","dependencies":{"axios":"^1.7.2","dotenv":"^16.4.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.4","typescript":"^5.4.5","@types/jest":"^29.5.12","@types/node":"^20.14.2","@babel/preset-typescript":"^7.24.7"},"_npmOperationalInternal":{"tmp":"tmp/facebook-api_1.0.3_1718052990513_0.6735501063323195","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@achchiraj/facebook-api","version":"1.0.4","author":{"name":"youssef_achchiraj"},"license":"ISC","_id":"@achchiraj/facebook-api@1.0.4","maintainers":[{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"}],"homepage":"https://github.com/YoussefACHCHIRAJ/facebook-api#readme","bugs":{"url":"https://github.com/YoussefACHCHIRAJ/facebook-api/issues"},"dist":{"shasum":"a129d44ebed60cc00f116af009c21564a62c2aa4","tarball":"https://registry.npmjs.org/@achchiraj/facebook-api/-/facebook-api-1.0.4.tgz","fileCount":7,"integrity":"sha512-z0j+yEMRGlFh1HbrAbUdXNbAepPHhIGWfcEaFmapIkFbFHuHzrjSlWqyJrm1LpI2yUE2al/FcjDKADge+AqsKw==","signatures":[{"sig":"MEQCIDYA0q6p/jBHvgvhLRD1s4JoAcW+shPndj8JBRzt2VWZAiBtKkl9x3bmcm5EPW++dIimwf2V0KxWl3SYEg8xQ9S2yA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36098},"main":"dist/index.js","gitHead":"7b08f87e063a21e7bc95b9ccb7ef8e7766aebeb7","scripts":{"dev":"nodemon src/index.ts","test":"jest","build":"npx tsc","start":"node dist/index.js"},"_npmUser":{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"},"repository":{"url":"git+https://github.com/YoussefACHCHIRAJ/facebook-api.git","type":"git"},"_npmVersion":"10.2.4","description":"simplify the interaction with facebook api graph","directories":{},"_nodeVersion":"20.11.0","dependencies":{"axios":"^1.7.2","dotenv":"^16.4.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.4","typescript":"^5.4.5","@types/jest":"^29.5.12","@types/node":"^20.14.2","@babel/preset-typescript":"^7.24.7"},"_npmOperationalInternal":{"tmp":"tmp/facebook-api_1.0.4_1718391487843_0.6757632516396428","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@achchiraj/facebook-api","version":"1.0.5","author":{"name":"youssef_achchiraj"},"license":"ISC","_id":"@achchiraj/facebook-api@1.0.5","maintainers":[{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"}],"homepage":"https://github.com/YoussefACHCHIRAJ/facebook-api#readme","bugs":{"url":"https://github.com/YoussefACHCHIRAJ/facebook-api/issues"},"dist":{"shasum":"08530b5c172a94bf698abadb20ac6d4f6529d4b2","tarball":"https://registry.npmjs.org/@achchiraj/facebook-api/-/facebook-api-1.0.5.tgz","fileCount":12,"integrity":"sha512-g4Dl51pXznPwnWi+zSWp5rym4Phz58yHCHunuBEfPxwMCJKt0P3YY3sLrCzCSkpRfhGPadfKclv+mwsg3A20pQ==","signatures":[{"sig":"MEQCIATigboOYuEAsX0shAPZhbuQWTsO0VsKVSTM6b2T5f1OAiAYQun9/Uv3rP4AX0OCVm5kJPt4SAH1SIbykr9VWB+Vuw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40092},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"7aaaae5d8df3948d33b6060f18eaf023b5db1a09","scripts":{"dev":"nodemon src/index.ts","test":"jest","build":"npx tsc","start":"node dist/index.js"},"_npmUser":{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"},"repository":{"url":"git+https://github.com/YoussefACHCHIRAJ/facebook-api.git","type":"git"},"_npmVersion":"10.2.4","description":"simplify the interaction with facebook api graph","directories":{},"_nodeVersion":"20.11.0","dependencies":{"axios":"^1.7.2","dotenv":"^16.4.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.4","typescript":"^5.4.5","@types/jest":"^29.5.12","@types/node":"^20.14.2","@babel/preset-typescript":"^7.24.7"},"_npmOperationalInternal":{"tmp":"tmp/facebook-api_1.0.5_1718539764011_0.9792087817310637","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@achchiraj/facebook-api","version":"1.0.6","author":{"name":"youssef_achchiraj"},"license":"ISC","_id":"@achchiraj/facebook-api@1.0.6","maintainers":[{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"}],"homepage":"https://github.com/YoussefACHCHIRAJ/facebook-api#readme","bugs":{"url":"https://github.com/YoussefACHCHIRAJ/facebook-api/issues"},"dist":{"shasum":"dc275a9ad8d4b85033f502ef09b826ce58db574e","tarball":"https://registry.npmjs.org/@achchiraj/facebook-api/-/facebook-api-1.0.6.tgz","fileCount":10,"integrity":"sha512-6o+y0nqaNPav+7nOg3h0A4G5kW58xKLTfna6bU5rwAio4u+KLLZ1ClXHap0bX6Grpma4YHwphR67CBexfy/YaA==","signatures":[{"sig":"MEYCIQC/dNjifx7fLMeCeIcpZGwBpVXFoMdffHhUyPMJSTRaIQIhAI1lM+zgwXGw91LtNLBb3IQJlanhu968Nvc7LmDXvM6F","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32423},"main":"dist/index.js","types":"dist/types/index.d.ts","gitHead":"f90fcf1267bab6193530e280daa7ca0828b6485e","scripts":{"dev":"nodemon src/index.ts","test":"jest","build":"npx tsc","start":"node dist/index.js"},"_npmUser":{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"},"repository":{"url":"git+https://github.com/YoussefACHCHIRAJ/facebook-api.git","type":"git"},"_npmVersion":"10.2.4","description":"simplify the interaction with facebook api graph","directories":{},"_nodeVersion":"20.11.0","dependencies":{"axios":"^1.7.2","dotenv":"^16.4.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.4","typescript":"^5.4.5","@types/jest":"^29.5.12","@types/node":"^20.14.2","@babel/preset-typescript":"^7.24.7"},"_npmOperationalInternal":{"tmp":"tmp/facebook-api_1.0.6_1718540463553_0.9091387926346559","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"@achchiraj/facebook-api","version":"1.0.7","author":{"name":"youssef_achchiraj"},"license":"ISC","_id":"@achchiraj/facebook-api@1.0.7","maintainers":[{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"}],"homepage":"https://github.com/YoussefACHCHIRAJ/facebook-api#readme","bugs":{"url":"https://github.com/YoussefACHCHIRAJ/facebook-api/issues"},"dist":{"shasum":"a7a571e0070f8acc1c270374ddbc1a85385b4cda","tarball":"https://registry.npmjs.org/@achchiraj/facebook-api/-/facebook-api-1.0.7.tgz","fileCount":10,"integrity":"sha512-WnV+va+Euk2KJB3Kzlbs3GgP2mnAPpSzxBQczuDeGD6DkoPT/8KJlwLlx3LXLezT0BQLiJGPC011UEoAq3qxrA==","signatures":[{"sig":"MEQCIHrp6sInoBiaVJEs6bZR5opMAvTeycU/7lP8pJg9OcgxAiAsulrOMcKtcqev5uKZWlH2wNAWnrPFvxAfRrGorFkcpg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33142},"main":"dist/index.js","types":"dist/types/index.d.ts","gitHead":"50224c6f159c6e21a72c210d733ec7070f6c3337","scripts":{"dev":"nodemon src/index.ts","test":"jest","build":"npx tsc","start":"node dist/index.js"},"_npmUser":{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"},"repository":{"url":"git+https://github.com/YoussefACHCHIRAJ/facebook-api.git","type":"git"},"_npmVersion":"10.2.4","description":"simplify the interaction with facebook api graph","directories":{},"_nodeVersion":"20.11.0","dependencies":{"axios":"^1.7.2","dotenv":"^16.4.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.4","typescript":"^5.4.5","@types/jest":"^29.5.12","@types/node":"^20.14.2","@babel/preset-typescript":"^7.24.7"},"_npmOperationalInternal":{"tmp":"tmp/facebook-api_1.0.7_1720375353083_0.8440701643676132","host":"s3://npm-registry-packages"}},"1.0.8":{"name":"@achchiraj/facebook-api","version":"1.0.8","author":{"name":"youssef_achchiraj"},"license":"ISC","_id":"@achchiraj/facebook-api@1.0.8","maintainers":[{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"}],"homepage":"https://github.com/YoussefACHCHIRAJ/facebook-api#readme","bugs":{"url":"https://github.com/YoussefACHCHIRAJ/facebook-api/issues"},"dist":{"shasum":"9d7eb54692e67cdb87025a36963f6534511b3530","tarball":"https://registry.npmjs.org/@achchiraj/facebook-api/-/facebook-api-1.0.8.tgz","fileCount":10,"integrity":"sha512-zOCm9qL3MYL96XOFldJRG3XmPm2P5krOe4+Cr273K7ufGGDEBO0q7wtzYKWkuZAQtaAoYT0E9hC213InY0H/Mw==","signatures":[{"sig":"MEUCIF6jvGVQ1zKK8zPJg/D1GEhu0jod75ENC9fBK1EqnSCtAiEAsRezmH8ynObffii6wjeyvxhnQsSXTlfun5fOS6PyGM8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34047},"main":"dist/index.js","types":"dist/types/index.d.ts","gitHead":"e5161bf2b14e0a5bec0e46e29d32e407db1f41d1","scripts":{"dev":"nodemon src/index.ts","test":"jest","build":"npx tsc","start":"node dist/index.js"},"_npmUser":{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"},"repository":{"url":"git+https://github.com/YoussefACHCHIRAJ/facebook-api.git","type":"git"},"_npmVersion":"10.2.4","description":"simplify the interaction with facebook api graph","directories":{},"_nodeVersion":"20.11.0","dependencies":{"axios":"^1.7.2","dotenv":"^16.4.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.4","typescript":"^5.4.5","@types/jest":"^29.5.12","@types/node":"^20.14.2","@babel/preset-typescript":"^7.24.7"},"_npmOperationalInternal":{"tmp":"tmp/facebook-api_1.0.8_1722531574215_0.6832611337047487","host":"s3://npm-registry-packages"}},"1.0.10":{"name":"@achchiraj/facebook-api","version":"1.0.10","description":"simplify the interaction with facebook api graph","main":"dist/index.js","types":"dist/types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/YoussefACHCHIRAJ/facebook-api.git"},"publishConfig":{"access":"public"},"scripts":{"build":"npx tsc","start":"node dist/index.js","dev":"nodemon src/index.ts","test":"jest"},"author":{"name":"youssef_achchiraj"},"license":"ISC","devDependencies":{"@babel/preset-typescript":"^7.24.7","@types/jest":"^29.5.12","@types/node":"^20.14.2","dotenv":"^17.2.3","jest":"^29.7.0","ts-jest":"^29.1.4","typescript":"^5.4.5"},"dependencies":{"axios":"^1.7.2"},"_id":"@achchiraj/facebook-api@1.0.10","gitHead":"9c6a9a95c89ce82752749f4e9a174c12e49112e6","bugs":{"url":"https://github.com/YoussefACHCHIRAJ/facebook-api/issues"},"homepage":"https://github.com/YoussefACHCHIRAJ/facebook-api#readme","_nodeVersion":"20.19.3","_npmVersion":"10.8.2","dist":{"integrity":"sha512-3bLHISM7RrzmyGh+tJDf8kd6WTF5aDfOKuPyVFmGtDCTKtb7iUe4nEHH9D0Z7yKON+tc7iZnFmC3Z5M9ZnCgLg==","shasum":"d15a8161974764c99e63039b66aff47f96513384","tarball":"https://registry.npmjs.org/@achchiraj/facebook-api/-/facebook-api-1.0.10.tgz","fileCount":2,"unpackedSize":10594,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCr0mr1oWPkXxIrhGw1GqemD/Vzs9Pdkyo6biLt02F1LQIhAM14z8+zNhy2GrXZOe9vtaZiNegADOEvP378B7O9lpOy"}]},"_npmUser":{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"},"directories":{},"maintainers":[{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/facebook-api_1.0.10_1759256397722_0.8042253502149128"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-08T23:23:56.447Z","modified":"2025-09-30T18:19:58.133Z","1.0.0":"2024-06-08T23:23:56.715Z","1.0.1":"2024-06-08T23:30:24.684Z","1.0.2":"2024-06-10T10:37:56.632Z","1.0.3":"2024-06-10T20:56:30.703Z","1.0.4":"2024-06-14T18:58:08.034Z","1.0.5":"2024-06-16T12:09:24.205Z","1.0.6":"2024-06-16T12:21:03.692Z","1.0.7":"2024-07-07T18:02:33.302Z","1.0.8":"2024-08-01T16:59:34.457Z","1.0.10":"2025-09-30T18:19:57.924Z"},"bugs":{"url":"https://github.com/YoussefACHCHIRAJ/facebook-api/issues"},"author":{"name":"youssef_achchiraj"},"license":"ISC","homepage":"https://github.com/YoussefACHCHIRAJ/facebook-api#readme","repository":{"type":"git","url":"git+https://github.com/YoussefACHCHIRAJ/facebook-api.git"},"description":"simplify the interaction with facebook api graph","maintainers":[{"name":"youssef_achchiraj","email":"youssefachchiraj@gmail.com"}],"readme":"# @achchiraj/facebook-api\n\nThe facebook-api is a package designed to simplify interactions with the Facebook Graph API. It provides pre-defined packages for commonly used functionalities and enums for frequently used metrics and periods.\n\n## Installation\n\nInstall the package via npm:\n\n```bash\nnpm install @achchiraj/facebook-api\n```\n\n## Example of usage\n\n```javascript\nconst { FacebookPageApi } = require(\"@achchiraj/facebook-api\");\n\n// Call the userInfo method with the access token\nconst userInfos = await FacebookPageApi.userInfo(accessToken);\n// Log the user information to the console\nconsole.log(userInfos); // example result: { name: 'random name', email: 'user@gmail.com' }\n\n// Call the accountPages method with the access token and the fields needed\nconst facebookPages = await FacebookPageApi.accountPages(\n  accessToken,\n  \"picture, name, access_token\"\n);\n// Log the facebook pages\nconsole.log(facebookPages); // example result: { picture: 'picture_url', name: 'page name', access_token: 'sadfrgsgsrgirugwfuacndncaoefoaiefoeufheufghs' }\n```\n\n## Available Functions\n\n### Personal Account Functions :\n\n```javascript\nexchangeToken(shortAccessToken: string, version?: string)\n```\n\nExchange a short-lived access token for a long-lived one.\n\n- `shortAccessToken`: Short-lived access token to exchange.\n- `version`: version of the api (default: 'v20.0')\n\n```javascript\nuserInfo(accessToken: string, fields?: string, version?: string)\n```\n\nFetch user information from Facebook.\n\n- `accessToken`: Access token of the user.\n- `fields`: Fields to retrieve (default: \"name,picture\").\n- `version`: version of the api (default: 'v20.0')\n\n```javascript\naccountPages(access_token: string, fields?: string, version?: string)\n```\n\nGet information about the Facebook pages associated with the user.\n\n- `access_token`: Access token of the user.\n- `fields`: Fields to retrieve (default: \"picture, category_list,category, tasks, name, access_token\").\n- `version`: version of the api (default: 'v20.0')\n\n### Facebook Page Functions :\n\n```javascript\npageDetails(pageId: string, pageAccessToken: string, fields?: string)\n```\n\nGet page's details.\n\n- `pageId`: ID of the Facebook page.\n- `pageAccessToken`: Access token of the page.\n- `fields`: Fields to retrieve (default: \"about,attire,bio,location,parking,hours,emails,website\").\n\n```javascript\npageReviews(pageId: string, pageAccessToken: string) : Promise<IFbPageReviews[]>\n```\n\nGet page's reviews.\n\n- `pageId`: ID of the Facebook page.\n- `pageAccessToken`: Access token of the page.\n\nObject format:\n\n```javascript\n[\n  {\n    created_time: string;\n    recommendation_type: \"positive\" | \"negative\";\n    review_text: string;\n    reviewer: {\n      name: string;\n      id: string;\n    };\n  }\n];\n```\n\n```javascript\npagePosts(pageId: string, pageAccessToken: string, fields?: string, version?: string)\n```\n\nGet posts from a Facebook page.\n\n- `pageId`: ID of the Facebook page.\n- `pageAccessToken`: Access token of the page.\n- `fields`: Fields to retrieve (default: \"full_picture,message,permalink_url,created_time,likes.summary(true),comments.summary(true),shares\").\n- `version`: version of the api (default: 'v20.0')\n\n```javascript\npageLikes(pageId: string, pageAccessToken: string, version?: string)\n```\n\nGet the number of likes on a Facebook page.\n\n- `pageId`: ID of the Facebook page.\n- `pageAccessToken`: Access token of the page.\n- `version`: version of the api (default: 'v20.0')\n\n```javascript\npageAnalytics(pageId: string, pageAccessToken: string, date_preset?: PageInsightsDatePreset, period?: PageInsightsPeriod, version?: string)\n```\n\nGet analytics for a Facebook page.\n\n- `pageId`: ID of the Facebook page.\n- `pageAccessToken`: Access token of the page.\n- `date_preset`: Date preset for insights (default: `PageInsightsDatePreset.this_year`).\n- `period`: Period for insights (default: `PageInsightsPeriod.month`).\n- `version`: version of the api (default: 'v20.0')\n\n```javascript\npageWeeklyStats(pageId: string, pageAccessToken: string, date_preset?: PageInsightsDatePreset, period?: PageInsightsPeriod, metric?: string, version?: string)\n```\n\nGet weekly statistics for a Facebook page.\n\n- `pageId`: ID of the Facebook page.\n- `pageAccessToken`: Access token of the page.\n- `date_preset`: Date preset for insights (default: `PageInsightsDatePreset.last_week_mon_sun`).\n- `period`: Period for insights (default: `PageInsightsPeriod.day`).\n- `metric`: Metrics to retrieve (default: \"page_post_engagements,page_impressions, page_daily_follows_unique\").\n- `version`: version of the api (default: 'v20.0')\n\n### Facebook Page Posts Functions :\n\n```javascript\nshareTextPostToPage(pageAccessToken: string, payload: ITextPostFbPayload, pageId: string, version?: string)\n```\n\nShare a text post to a Facebook page.\n\n- `pageAccessToken`: Access token of the page.\n- `payload`: Payload of the text post.\n- `pageId`: ID of the page to post to.\n- `version`: version of the api (default: 'v20.0')\n\nExample:\n\n```javascript\nconst payload = {\n  message: \"Hello, world!\",\n  published: true,\n  scheduled_publish_time: \"2024-06-15T12:00:00Z\",\n};\n```\n\n```javascript\nsharePicturePostToPage(pageAccessToken: string, payload: IPicturePostFbPayload, pageId: string, version?: string)\n```\n\nShare a text post to a Facebook page.\n\n- `pageAccessToken`: Access token of the page.\n- `payload`: Payload of the picture post.\n- `pageId`: ID of the page to post to.\n- `version`: version of the api (default: 'v20.0')\n\nExample:\n\n```javascript\nconst payload = {\n  url: \"picture_url\",\n  published: true,\n  scheduled_publish_time: \"2024-06-15T12:00:00Z\",\n};\n```\n\n```javascript\nupdateTextPostOfPage(pageAccessToken: string, payload: { message: string }, pageId: string, version?: string)\n```\n\nShare a text post to a Facebook page.\n\n- `pageAccessToken`: Access token of the page.\n- `payload`: Payload of the picture post.\n- `pageId`: ID of the page to post to.\n- `version`: version of the api (default: 'v20.0')\n\nExample:\n\n```javascript\nconst payload = {\n  message: \"picture_url\",\n};\n```\n\n```javascript\npagePostsReactions(pageId: string, pageAccessToken: string, date_preset?: PageInsightsDatePreset period?: PageInsightsPeriod, metric?: string, version?: string)\n```\n\nGet reactions to posts on a Facebook page.\n\n- `pageId`: ID of the Facebook page.\n- `pageAccessToken`: Access token of the page.\n- `date_preset`: Date preset for insights (default: `PageInsightsDatePreset.this_year`).\n- `period`: Period for insights (default: `PageInsightsPeriod.week`).\n- `metric`: Metrics to retrieve (default: \"page_actions_post_reactions_like_total, page_actions_post_reactions_love_total, page_actions_post_reactions_wow_total\").\n- `version`: version of the api (default: 'v20.0')\n\n```javascript\npageScheduledPosts(pageId: string, pageAccessToken: string, fields?: string, version?: string)\n```\n\nGet scheduled posts from a Facebook page.\n\n- `pageId`: ID of the Facebook page.\n- `pageAccessToken`: Access token of the page.\n- `fields`: Fields to retrieve (default: \"full_picture,message,permalink_url,created_time, likes.summary(true),comments.summary(true),shares\").\n- `version`: version of the api (default: 'v20.0')\n\n```javascript\ndeleteFacebookPagePost(postId: string, pageAccessToken: string, version?: string)\n```\n\nDelete a post from a Facebook page.\n\n- `postId`: ID of the post to delete.\n- `pageAccessToken`: Access token of the page.\n- `version`: version of the api (default: 'v20.0')\n\n### Facebook Page Post Comments Functions :\n\n```javascript\npagePostComments(pagePostId: string, pageAccessToken: string, fields?: string, version?: string)\n```\n\nGet comments on a post from a Facebook page.\n\n- `pagePostId`: ID of the post.\n- `pageAccessToken`: Access token of the page.\n- `fields`: Fields to retrieve for comments (default: \"from,message\").\n- `version`: version of the api (default: 'v20.0')\n\n```javascript\ncommentOnPost(postId: string, pageAccessToken: string,comment: string, version?: string)\n```\n\nDelete a comment from a post on a Facebook page.\n\n- `postId`: ID of the post.\n- `pageAccessToken`: Access token of the page.\n- `comment`: The comment content.\n- `version`: version of the api (default: 'v20.0')\n\n```javascript\ndeleteComment(commentId: string, pageAccessToken: string, version?: string)\n```\n\nDelete a comment from a post on a Facebook page.\n\n- `commentId`: ID of the comment to delete.\n- `pageAccessToken`: Access token of the page.\n- `version`: version of the api (default: 'v20.0')\n\n```javascript\nreplyOnFacebookComment(commentId: string, pageAccessToken: string, reply: string, version?: string)\n```\n\nReply to a comment on a post on a Facebook page.\n\n- `commentId`: ID of the comment to reply to.\n- `pageAccessToken`: Access token of the page.\n- `reply`: Reply message.\n- `version`: version of the api (default: 'v20.0')\n\n## Enums\n\n### `PageInsightsDatePreset`\n\nAn enum representing various date presets for Facebook page insights.\n\n- `today`: Today\n- `yesterday`: Yesterday\n- `this_month`: This month\n- `last_month`: Last month\n- `this_quarter`: This quarter\n- `maximum`: Maximum\n- `data_maximum`: Data maximum\n- `last_3d`: Last 3 days\n- `last_7d`: Last 7 days\n- `last_14d`: Last 14 days\n- `last_28d`: Last 28 days\n- `last_30d`: Last 30 days\n- `last_90d`: Last 90 days\n- `last_week_mon_sun`: Last week (Monday to Sunday)\n- `last_week_sun_sat`: Last week (Sunday to Saturday)\n- `last_quarter`: Last quarter\n- `last_year`: Last year\n- `this_week_mon_today`: This week (Monday to today)\n- `this_week_sun_today`: This week (Sunday to today)\n- `this_year`: This year\n\n### `PageInsightsPeriod`\n\nAn enum representing various periods for Facebook page insights.\n\n- `day`: Day\n- `week`: Week\n- `days_28`: 28 days\n- `month`: Month\n- `lifetime`: Lifetime\n- `total_over_range`: Total over range\n","readmeFilename":"README.md"}