facebook-export icon indicating copy to clipboard operation
facebook-export copied to clipboard

Sale post API

Open montanaday opened this issue 9 years ago • 7 comments

Facebook groups have a specific feature - Sale Post that allows to post items for sale. What about filtering returned items so we only get for sale posts or even how to check if the post is a for sale post or not in a Group? Thanks

montanaday avatar Sep 19 '16 15:09 montanaday

Happy to take a PR that adds exporting sale posts (if they're not already exported) but not interested in adding support for filtering. You can get a JSON version of your posts which is easy enough to filter.

KyleAMathews avatar Sep 19 '16 16:09 KyleAMathews

Yes, the sale posts are exported but along with all other posts in a group. What I mean is to add an API call to check if the posts are sale posts and then export them accordingly to JSON using your script.. .

montanaday avatar Sep 19 '16 18:09 montanaday

If it's a non-disruptive change, happy to merge a PR!

KyleAMathews avatar Sep 20 '16 17:09 KyleAMathews

As I can see, a sale post is almost identical to a standard post (except for the embedded price and location info), so there is not much for identifying a sale post on Facebook API.

` [

{
    "from": {
        "name": "FB group user name",
        "id": "xxxxxxxxxxxxxxxxx"
    },
    "message": "Sale Item Header Text Here\n€50 - Berlin, Germany\n\nDetailed Item Description Text.",
    "picture": "https://scontent.xx.fbcdn.net/v/t1.0-0/......",
    "link": "https://www.facebook.com/photo.php.....",
    "created_time": "2016-09-19T15:38:34+0000",
    "updated_time": "2016-09-19T15:38:35+0000",
    "id": "xxxxxxxxxxxxxxxxx",
    "to": {
        "data": [
            {
                "id": "xxxxxxxxxxx",
                "name": "Item Name"
            }
        ]
    }
}

] `

montanaday avatar Sep 21 '16 17:09 montanaday

is there any news? I'm trying to get the information on sale posts

itpao25 avatar May 12 '17 10:05 itpao25

You can only know why in the permalink url comes out sale_post_id but nothing else.

andygomezb7 avatar Oct 29 '17 17:10 andygomezb7

Is there a better way besides checking the permalink and parsing it yourself?

ShaneRich5 avatar Nov 19 '17 08:11 ShaneRich5