问题描述
有谁知道以编程方式列出地点的所有 Facebook 子类别的任何方法?我在另一篇文章中看到了这个列表,其中列出了所有类别(不是子类别),这与 Facebook 公司创建页面上的源代码中列出的相同:Facebook 页面 — 权威类别列表
Does anyone know of any way to programmatically list all Facebook subcategories for places? I've seen this list here in another post which lists all categories (not subcategories), which is the same listed in the source code on the Facebook company creation page: Facebook Pages — Authoritative List of Categories
我想对 Facebook 上的一些商家进行分类,以便它们更容易消化,但似乎有一半的商家在本地商家或地点"下选择了本地商家"类别.将所有业务中的大部分集中在一个范围内并没有真正的帮助.
I'd like to categorize some businesses on Facebook so that they're easier to digest, but it seems that half of all businesses pick the category "local business" under "local business or place." Not really helpful to have the majority of all businesses in one catch all bucket.
以下是一个被归类为本地商家且具有酒吧子类别的地方的示例.获取子类别的完整列表将非常有帮助.感谢您的帮助.
Here's an example of a place categorized as local business with a subcategory of bar. Would be really helpful to get a full list of the subcategories. Thanks for the help.
{
"page_id": xxxxx,
"description": "",
"name": "xxxxx Lounge",
"categories": [
{
"id": 110290705711626,
"name": "Bar"
}
],
"pic_big": "xxxxx.png",
"type": "LOCAL BUSINESS"
},
推荐答案
Facebook 刚刚对其图形 API 进行了一些更改.可以在此处的 Graph API Explorer 中查看所有子类别的列表(Facebook 称之为地方主题"):
Facebook just made some changes to their graph API. The list of all subcategories (which Facebook calls "place topics") can be viewed in the Graph API Explorer here:
API 调用本身是:
它具有完整的分类法,因为所有主题都列出了它们的父主题,但是如果您想要双向关系,则必须自己对其进行逆向工程.
It has the full taxonomy in that all topics list their parent topics, but if you wanted a bidirectional relationship, you would have to reverse engineer it yourself.
为避免混淆,可能值得注意的是,Facebook 所谓的类别"是页面分类的更高级别细分.每个页面只能有一个类别,所以没有任何内置的分类法,但它们可以有很多页面主题.我不确定完整列表在哪里或是否在线,但就是这样(抱歉丑陋;我有一些格式问题):
To avoid confusion it might be worth noting that what Facebook calls "Categories" is a higher level breakdown of page categorization. Each page can only have on Category, so there isn't any built in taxonomy, but they can have many Page Topics. I'm not sure where or if the full list is online, but it's this (Sorry for the ugly; I had some formatting issues):
category category_enum 说明
category category_enum Description
1111 MOVIE_THEATER 电影院
1111 MOVIE_THEATER Movie Theater
1209 CONCERT_VENUE 音乐会场地
1209 CONCERT_VENUE Concert Venue
1305 BOOK_STORE书店
1305 BOOK_STORE Book Store
1306图书馆图书馆
1607 LAWYER 律师
1607 LAWYER Lawyer
1608 DOCTOR 博士
1608 DOCTOR Doctor
1900 RESTAURANT_CAFE 餐厅/咖啡厅
1900 RESTAURANT_CAFE Restaurant/Cafe
2100 酒吧酒吧
2101 俱乐部
2231 SPORTS_OUTDOORS 户外装备/运动用品
2231 SPORTS_OUTDOORS Outdoor Gear/Sporting Goods
2500 家本地商户
2501酒店
2506 机场机场
2507 SPORTS_VENUE 运动场
2507 SPORTS_VENUE Sports Venue
2508 ARTS_ENTERTAINMENT 艺术/娱乐/夜生活
2508 ARTS_ENTERTAINMENT Arts/Entertainment/Nightlife
2509 汽车 汽车
2510 SPA_BEAUTY 水疗/美容/个人护理
2510 SPA_BEAUTY Spas/Beauty/Personal Care
2511 EVENT_PLANNING 活动策划/活动服务
2511 EVENT_PLANNING Event Planning/Event Services
2512 BANKS 银行/金融服务
2512 BANKS Bank/Financial Services
2513 FOOD_GROCERY 食品/杂货
2513 FOOD_GROCERY Food/Grocery
2514 HEALTH_MEDICAL 健康/医疗/药房
2514 HEALTH_MEDICAL Health/Medical/Pharmacy
2515 HOME_IMPROVEMENT 家装
2515 HOME_IMPROVEMENT Home Improvement
2516 PET_SERVICES 宠物服务
2516 PET_SERVICES Pet Services
2517 PROFESSIONAL_SERVICES 专业服务
2517 PROFESSIONAL_SERVICES Professional Services
2518 BUSINESS_SERVICES 商业服务
2518 BUSINESS_SERVICES Business Services
2519 COMMUNITY_GOVERNMENT 社区/政府
2519 COMMUNITY_GOVERNMENT Community/Government
2520 REAL_ESTATE 房地产
2520 REAL_ESTATE Real Estate
2521 SHOPPING_RETAIL 购物/零售
2521 SHOPPING_RETAIL Shopping/Retail
2524 SPORTS_RECREATION 体育/休闲/活动
2524 SPORTS_RECREATION Sports/Recreation/Activities
2525 TOURS_SIGHTSEEING 旅游/观光
2525 TOURS_SIGHTSEEING Tours/Sightseeing
2526 TRANSPORTATION_TOURISM 交通
2526 TRANSPORTATION_TOURISM Transportation
2527 HOSPITAL_CLINIC 医院/诊所
2527 HOSPITAL_CLINIC Hospital/Clinic
2528 博物馆博物馆/美术馆
2528 MUSEUM Museum/Art Gallery
category category_enum 说明
category category_enum Description
1201 SONG 歌曲
1201 SONG Song
1200专辑专辑
1202 MUSICIAN_BAND 音乐家/乐队
1202 MUSICIAN_BAND Musician/Band
1204 MUSIC_INSTRUMENT 乐器
1204 MUSIC_INSTRUMENT Musical Instrument
1206 播放列表播放列表
1206 PLAYLIST Playlist
1207 MUSIC_VIDEO 音乐视频
1207 MUSIC_VIDEO Music Video
1208 CONCERT_TOUR 巡回演唱会
1208 CONCERT_TOUR Concert Tour
1210 RADIO_STATION 电台
1210 RADIO_STATION Radio Station
1211 RECORD_LABEL 唱片标签
1211 RECORD_LABEL Record Label
1212 MUSIC_AWARD 音乐奖
1212 MUSIC_AWARD Music Award
1213 MUSIC_CHART 音乐排行榜
1213 MUSIC_CHART Music Chart
1105电影
1103 ACTOR_DIRECTOR 演员/导演
1103 ACTOR_DIRECTOR Actor/Director
1108 制作人制作人
1108 PRODUCER Producer
1109 MOVIE_WRITER 编剧
1109 MOVIE_WRITER Writer
1110 电影工作室
1112 TV_MOVIE_AWARD 电视/电影奖
1112 TV_MOVIE_AWARD TV/Movie Award
1113 FICTIONAL_CHARACTER 虚构人物
1113 FICTIONAL_CHARACTER Fictional Character
1400 TV_SHOW 电视节目
1400 TV_SHOW TV Show
1402 TV_NETWORK 电视网
1402 TV_NETWORK TV Network
1404 TV_CHANNEL 电视频道
1404 TV_CHANNEL TV Channel
1405 集剧情
1300 本书
1301 作者 作者
1304 出版社出版商
1304 PUBLISHER Publisher
1308 EDITOR 编辑器
1308 EDITOR Editor
1307 杂志杂志
1600 ATHLETE 运动员
1600 ATHLETE Athlete
1700 政客政客
1601 ARTIST 艺术家
1601 ARTIST Artist
1701 GOVERNMENT_OFFICIAL 政府官员
1701 GOVERNMENT_OFFICIAL Government Official
1602 人公众人物
1605 NEWS_PERSONALITY新闻人物
1605 NEWS_PERSONALITY News Personality
1604 JOURNALIST 记者
1604 JOURNALIST Journalist
1606 CHEF 大厨
1606 CHEF Chef
1609 BUSINESS_PERSON 业务人员
1609 BUSINESS_PERSON Business Person
1610 喜剧演员
1611 艺人艺人
1612 MONARCH 君主
1612 MONARCH Monarch
1613老师老师
1614 舞者舞者
1901 CUISINE 美食
1901 CUISINE Cuisine
2000 食物食物
2001 DRINK 饮料
2001 DRINK Drink
2202网站网站
2205辆汽车
2206 BAGS_LUGGAGE 包/行李
2206 BAGS_LUGGAGE Bags/Luggage
2208 CAMERA_PHOTO 相机/照片
2208 CAMERA_PHOTO Camera/Photo
2209服装服饰
2210 计算机
2211 软件
2212 OFFICE_SUPPLIES 办公用品
2212 OFFICE_SUPPLIES Office Supplies
2213 电子电子
2215 家用电器
2216 BUILDING_MATS 建材
2216 BUILDING_MATS Building Materials
2217 COMMERCIAL_EQUIPMENT 商业设备
2217 COMMERCIAL_EQUIPMENT Commercial Equipment
2218 HOME_DECOR 家居装饰
2218 HOME_DECOR Home Decor
2219 家具 家具
2220 HOUSEHOLD_SUPPLIES 家居用品
2220 HOUSEHOLD_SUPPLIES Household Supplies
2221 KITCHEN_SUPPLIES 厨房/烹饪
2221 KITCHEN_SUPPLIES Kitchen/Cooking
2222 PATIO_GARDEN 露台/花园
2222 PATIO_GARDEN Patio/Garden
2223 TOOLS_EQUIPMENT 工具/设备
2223 TOOLS_EQUIPMENT Tools/Equipment
2224 WINE_SPIRITS 葡萄酒/烈酒
2224 WINE_SPIRITS Wine/Spirits
2226 JEWELRY_WATCHES 珠宝/手表
2226 JEWELRY_WATCHES Jewelry/Watches
2227 MOVIES_MUSIC 电影/音乐
2227 MOVIES_MUSIC Movies/Music
2230 PET_SUPPLIES 宠物用品
2230 PET_SUPPLIES Pet Supplies
2232 BABY_KIDS 婴儿用品/儿童用品
2232 BABY_KIDS Baby Goods/Kids Goods
2262 VITAMIN_SUPPLEMENTS 维生素/补充剂
2262 VITAMIN_SUPPLEMENTS Vitamins/Supplements
2263 药品
2201 PRODUCT_SERVICE 产品/服务
2201 PRODUCT_SERVICE Product/Service
2300 款游戏游戏/玩具
2300 GAME Games/Toys
2301 APP应用页面
2301 APP App Page
2505 TRANSIT_STOP 公交站点
2505 TRANSIT_STOP Transit Stop
2523 个景点景点/要做的事情
2523 ATTRACTIONS Attractions/Things to Do
2503地标地标
2522 PARKS_POI 公共场所
2522 PARKS_POI Public Places
2200 COMPANY 公司
2200 COMPANY Company
2233 MEDIA_NEWS_COMPANY 媒体/新闻/出版
2233 MEDIA_NEWS_COMPANY Media/News/Publishing
2234 BANK_FINANCIAL_COMPANY 银行/金融机构
2234 BANK_FINANCIAL_COMPANY Bank/Financial Institution
2235 NGO 非政府组织 (NGO)
2235 NGO Non-Governmental Organization (NGO)
2236 INSURANCE_COMPANY 保险公司
2236 INSURANCE_COMPANY Insurance Company
2237 SMALL_BUSINESS 小型企业
2237 SMALL_BUSINESS Small Business
2238 ENERGY_COMPANY 能源/公用事业
2238 ENERGY_COMPANY Energy/Utility
2239 RETAIL_COMPANY 零售和消费品
2239 RETAIL_COMPANY Retail and Consumer Merchandise
2240 AUTO_COMPANY 汽车及零部件
2240 AUTO_COMPANY Automobiles and Parts
2241 INDUSTRIALS_COMPANY 工业
2241 INDUSTRIALS_COMPANY Industrials
2242 TRANSPORT_FREIGHT 运输/货运
2242 TRANSPORT_FREIGHT Transport/Freight
2243 HEALTH_COMPANY 健康/医疗/制药
2243 HEALTH_COMPANY Health/Medical/Pharmaceuticals
2214 HEALTH_BEAUTY 健康/美容
2214 HEALTH_BEAUTY Health/Beauty
2244 AEROSPACE_COMPANY 航空航天/国防
2244 AEROSPACE_COMPANY Aerospace/Defense
2245 MINING_COMPANY 采矿/材料
2245 MINING_COMPANY Mining/Materials
2246 FARMING_COMPANY 农业/农业
2246 FARMING_COMPANY Farming/Agriculture
2247 CHEMICAL_COMPANY 化工
2247 CHEMICAL_COMPANY Chemicals
2248 CONSULTING_COMPANY 咨询/商业服务
2248 CONSULTING_COMPANY Consulting/Business Services
2249 LEGAL_COMPANY 法律/法律
2249 LEGAL_COMPANY Legal/Law
2250 EDUCATION_COMPANY 教育
2250 EDUCATION_COMPANY Education
2251 ENGINEERING_COMPANY 工程/建筑
2251 ENGINEERING_COMPANY Engineering/Construction
2252 FOOD_COMPANY 食品/饮料
2252 FOOD_COMPANY Food/Beverages
2253 TELECOM 电信
2253 TELECOM Telecommunication
2254 BIOTECH_COMPANY 生物技术
2254 BIOTECH_COMPANY Biotechnology
2255 COMPUTER_COMPANY 计算机/技术
2255 COMPUTER_COMPANY Computers/Technology
2256 INTERNET_COMPANY 互联网/软件
2256 INTERNET_COMPANY Internet/Software
2258 TRAVEL_COMPANY 旅游/休闲
2258 TRAVEL_COMPANY Travel/Leisure
2260 COMMUNITY_ORG 社区组织
2260 COMMUNITY_ORG Community Organization
2261 POLITICAL_ORG 政治组织
2261 POLITICAL_ORG Political Organization
2264 RELIGIOUS_ORG 教会/宗教组织
2264 RELIGIOUS_ORG Church/Religious Organization
2600 ORG_GENERAL 组织
2600 ORG_GENERAL Organization
2601 学校
2602 大学
2604 GOVERNMENT_ORG 政府组织
2604 GOVERNMENT_ORG Government Organization
2603 NON_PROFIT 非营利组织
2603 NON_PROFIT Non-Profit Organization
2606 原因 原因
2618 POLITICAL_PARTY 政党
2618 POLITICAL_PARTY Political Party
2612社区社区
1800 SPORTS_LEAGUE 体育联盟
1800 SPORTS_LEAGUE Sports League
1801 SPORTS_TEAM 职业运动队
1801 SPORTS_TEAM Professional Sports Team
1802 COACH 教练
1802 COACH Coach
1803 AMATEUR_TEAM 业余运动队
1803 AMATEUR_TEAM Amateur Sports Team
1804 SCHOOL_TEAM 学校运动队
1804 SCHOOL_TEAM School Sports Team
2700 PERSONAL_BLOG 个人博客
2700 PERSONAL_BLOG Personal Blog
2701 ARTS_SITE 艺术/人文网站
2701 ARTS_SITE Arts/Humanities Website
2702 BIZ_SITE 商业/经济网站
2702 BIZ_SITE Business/Economy Website
2703 COMPUTER_SITE 计算机/互联网网站
2703 COMPUTER_SITE Computers/Internet Website
2704 EDU_SITE 教育网站
2704 EDU_SITE Education Website
2705 ENTERTAINMENT_SITE 娱乐网站
2705 ENTERTAINMENT_SITE Entertainment Website
2706 GOV_SITE 政府网站
2706 GOV_SITE Government Website
2707 HEALTH_SITE 健康/保健网站
2707 HEALTH_SITE Health/Wellness Website
2708 HOME_SITE首页/花园网站
2708 HOME_SITE Home/Garden Website
2709 NEWS_SITE 新闻/媒体网站
2709 NEWS_SITE News/Media Website
2710 REC_SITE 娱乐/体育网站
2710 REC_SITE Recreation/Sports Website
2711 REF_SITE 参考网站
2711 REF_SITE Reference Website
2712 REGIONAL_SITE 区域网站
2712 REGIONAL_SITE Regional Website
2713 SCIENCE_SITE 科学网站
2713 SCIENCE_SITE Science Website
2714 SOCIETY_SITE 社会/文化网站
2714 SOCIETY_SITE Society/Culture Website
2715 TRAVEL_SITE 本地/旅游网站
2715 TRAVEL_SITE Local/Travel Website
2716 KIDS_SITE 青少年/儿童网站
2716 KIDS_SITE Teens/Kids Website
2717 PERSONAL_SITE 个人网站
2717 PERSONAL_SITE Personal Website
这篇关于所有 Facebook 子类别的权威列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!